Index: trunk/test/unit/org/openstreetmap/josm/io/OverpassDownloadReaderTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/OverpassDownloadReaderTest.java	(revision 11916)
+++ trunk/test/unit/org/openstreetmap/josm/io/OverpassDownloadReaderTest.java	(revision 11917)
@@ -4,4 +4,6 @@
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
+import java.util.regex.Matcher;
 
 import org.junit.Rule;
@@ -86,5 +88,7 @@
     public void testOutputFormatStatement() {
         for (OverpassOutpoutFormat oof : OverpassOutpoutFormat.values()) {
-            assertTrue(OverpassDownloadReader.OUTPUT_FORMAT_STATEMENT.matcher("[out:"+oof.getDirective()+"]").matches());
+            Matcher m = OverpassDownloadReader.OUTPUT_FORMAT_STATEMENT.matcher("[out:"+oof.getDirective()+"]");
+            assertTrue(m.matches());
+            assertEquals(oof.getDirective(), m.group(1));
         }
 
