Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/ValidationUtil.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/ValidationUtil.java	(revision 32064)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/ValidationUtil.java	(revision 32065)
@@ -43,5 +43,5 @@
   public static void throwExceptionForInvalidImgKey(String imgKey, boolean nullAllowed) {
     if (!validateSequenceKey(imgKey)) {
-      throw new IllegalArgumentException(I18n.tr("The image key ''{{0}}'' is invalid!", imgKey));
+      throw new IllegalArgumentException(I18n.tr("The image key ''{0}'' is invalid!", imgKey));
     }
     if (!nullAllowed && imgKey == null) {
@@ -59,5 +59,5 @@
   public static void throwExceptionForInvalidSeqKey(String seqKey, boolean nullAllowed) {
     if (!validateSequenceKey(seqKey)) {
-      throw new IllegalArgumentException(I18n.tr("The sequence key ''{{0}}'' is invalid!", seqKey));
+      throw new IllegalArgumentException(I18n.tr("The sequence key ''{0}'' is invalid!", seqKey));
     }
     if (!nullAllowed && seqKey == null) {
Index: /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryDataTest.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryDataTest.java	(revision 32064)
+++ /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillaryDataTest.java	(revision 32065)
@@ -19,10 +19,10 @@
 public class MapillaryDataTest extends AbstractTest {
 
-  MapillaryData data;
-  MapillaryImage img1;
-  MapillaryImage img2;
-  MapillaryImage img3;
-  MapillaryImage img4;
-  MapillarySequence seq;
+  private MapillaryData data;
+  private MapillaryImage img1;
+  private MapillaryImage img2;
+  private MapillaryImage img3;
+  private MapillaryImage img4;
+  private MapillarySequence seq;
 
   /**
@@ -32,12 +32,11 @@
   @Before
   public void setUp() {
-    this.img1 = new MapillaryImage("key1", new LatLon(0.1, 0.1), 90);
-    this.img2 = new MapillaryImage("key2", new LatLon(0.2, 0.2), 90);
-    this.img3 = new MapillaryImage("key3", new LatLon(0.3, 0.3), 90);
-    this.img4 = new MapillaryImage("key4", new LatLon(0.4, 0.4), 90);
+    this.img1 = new MapillaryImage("key1__________________", new LatLon(0.1, 0.1), 90);
+    this.img2 = new MapillaryImage("key2__________________", new LatLon(0.2, 0.2), 90);
+    this.img3 = new MapillaryImage("key3__________________", new LatLon(0.3, 0.3), 90);
+    this.img4 = new MapillaryImage("key4__________________", new LatLon(0.4, 0.4), 90);
     this.seq = new MapillarySequence();
 
-    this.seq.add(Arrays.asList(new MapillaryAbstractImage[] { this.img1,
-        this.img2, this.img3, this.img4 }));
+    this.seq.add(Arrays.asList(new MapillaryAbstractImage[] { img1, img2, img3, img4 }));
     this.img1.setSequence(this.seq);
     this.img2.setSequence(this.seq);
@@ -61,9 +60,7 @@
     this.data.add(this.img1);
     assertEquals(1, this.data.getImages().size());
-    this.data.add(new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[] { this.img2,
-        this.img3 })));
+    this.data.add(new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[] { this.img2, this.img3 })));
     assertEquals(3, this.data.getImages().size());
-    this.data.add(new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[] { this.img3,
-        this.img4 })));
+    this.data.add(new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[] { this.img3, this.img4 })));
     assertEquals(4, this.data.getImages().size());
   }
@@ -75,5 +72,5 @@
   public void sizeTest() {
     assertEquals(4, this.data.size());
-    this.data.add(new MapillaryImage("key5", new LatLon(0.1, 0.1), 90));
+    this.data.add(new MapillaryImage("key5__________________", new LatLon(0.1, 0.1), 90));
     assertEquals(5, this.data.size());
   }
@@ -112,5 +109,5 @@
    */
   @Test
-  public void NextAndPreviousTest() {
+  public void nextAndPreviousTest() {
     this.data.setSelectedImage(this.img1);
 
@@ -129,6 +126,4 @@
       fail();
     } catch (IllegalStateException e) {
-    } catch (Exception e) {
-      fail();
     }
     // Test IllegalStateException thrown by selectPrevious() when the
@@ -138,6 +133,4 @@
       fail();
     } catch (IllegalStateException e) {
-    } catch (Exception e) {
-      fail();
     }
   }
Index: /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillarySequenceTest.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillarySequenceTest.java	(revision 32064)
+++ /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/MapillarySequenceTest.java	(revision 32065)
@@ -18,9 +18,9 @@
 public class MapillarySequenceTest {
 
-  MapillaryImage img1;
-  MapillaryImage img2;
-  MapillaryImage img3;
-  MapillaryImage img4;
-  MapillarySequence seq;
+  private MapillaryImage img1;
+  private MapillaryImage img2;
+  private MapillaryImage img3;
+  private MapillaryImage img4;
+  private MapillarySequence seq;
 
   /**
@@ -30,16 +30,15 @@
   @Before
   public void setUp() {
-    this.img1 = new MapillaryImage("key1", new LatLon(0.1, 0.1), 90);
-    this.img2 = new MapillaryImage("key2", new LatLon(0.2, 0.2), 90);
-    this.img3 = new MapillaryImage("key3", new LatLon(0.3, 0.3), 90);
-    this.img4 = new MapillaryImage("key4", new LatLon(0.4, 0.4), 90);
-    this.seq = new MapillarySequence();
+    img1 = new MapillaryImage("key1__________________", new LatLon(0.1, 0.1), 90);
+    img2 = new MapillaryImage("key2__________________", new LatLon(0.2, 0.2), 90);
+    img3 = new MapillaryImage("key3__________________", new LatLon(0.3, 0.3), 90);
+    img4 = new MapillaryImage("key4__________________", new LatLon(0.4, 0.4), 90);
+    seq = new MapillarySequence();
 
-    this.seq.add(Arrays.asList(new MapillaryAbstractImage[] { this.img1,
-        this.img2, this.img3, this.img4 }));
-    this.img1.setSequence(this.seq);
-    this.img2.setSequence(this.seq);
-    this.img3.setSequence(this.seq);
-    this.img4.setSequence(this.seq);
+    seq.add(Arrays.asList(new MapillaryAbstractImage[] { img1, img2, img3, img4 }));
+    img1.setSequence(seq);
+    img2.setSequence(seq);
+    img3.setSequence(seq);
+    img4.setSequence(seq);
   }
 
@@ -64,9 +63,7 @@
     // that is not in the sequence.
     try {
-      this.seq.next(new MapillaryImage("key5", new LatLon(0.5, 0.5), 90));
+      this.seq.next(new MapillaryImage("key5__________________", new LatLon(0.5, 0.5), 90));
       fail();
     } catch (IllegalArgumentException e) {
-    } catch (Exception e) {
-      fail();
     }
     // Test IllegalArgumentException when asking for the previous image of an
@@ -76,6 +73,4 @@
       fail();
     } catch (IllegalArgumentException e) {
-    } catch (Exception e) {
-      fail();
     }
   }
Index: /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/history/MapillaryRecordTest.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/history/MapillaryRecordTest.java	(revision 32064)
+++ /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/history/MapillaryRecordTest.java	(revision 32065)
@@ -32,8 +32,8 @@
 public class MapillaryRecordTest extends AbstractTest {
 
-  MapillaryRecord record;
-  MapillaryImage img1;
-  MapillaryImage img2;
-  MapillaryImage img3;
+  private MapillaryRecord record;
+  private MapillaryImage img1;
+  private MapillaryImage img2;
+  private MapillaryImage img3;
 
   /**
@@ -43,8 +43,8 @@
   @Before
   public void setUp() {
-    this.record = new MapillaryRecord();
-    this.img1 = new MapillaryImage("key1", new LatLon(0.1, 0.1), 0.1);
-    this.img2 = new MapillaryImage("key2", new LatLon(0.2, 0.2), 0.2);
-    this.img3 = new MapillaryImage("key3", new LatLon(0.3, 0.3), 0.3);
+    record = new MapillaryRecord();
+    img1 = new MapillaryImage("key1__________________", new LatLon(0.1, 0.1), 0.1);
+    img2 = new MapillaryImage("key2__________________", new LatLon(0.2, 0.2), 0.2);
+    img3 = new MapillaryImage("key3__________________", new LatLon(0.3, 0.3), 0.3);
     MapillaryLayer.getInstance().getData().getImages().clear();
   }
@@ -112,8 +112,8 @@
   public void commandMoveTest() {
     CommandMove cmd1 = new CommandMove(
-            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})),
+            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{img1, img2})),
             0.1, 0.1);
     CommandMove cmd2 = new CommandMove(
-            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})),
+            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{img1, img2})),
             0.1, 0.1);
 
@@ -176,28 +176,22 @@
   @Test
   public void commandJoinClass() {
-    CommandJoin cmd1 = new CommandJoin(
-            Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2}));
-    CommandJoin cmd2 = new CommandJoin(
-            Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3}));
-
-    this.record.addCommand(cmd1);
-    assertEquals(2, this.img1.getSequence().getImages().size());
-    assertEquals(this.img2, this.img1.next());
-    this.record.undo();
-    assertEquals(1, this.img1.getSequence().getImages().size());
-    this.record.redo();
-    this.record.addCommand(cmd2);
-    assertEquals(3, this.img1.getSequence().getImages().size());
-    assertEquals(this.img3, this.img1.next().next());
+    CommandJoin cmd1 = new CommandJoin(Arrays.asList(new MapillaryAbstractImage[]{img1, img2}));
+    CommandJoin cmd2 = new CommandJoin(Arrays.asList(new MapillaryAbstractImage[]{img2, img3}));
+
+    this.record.addCommand(cmd1);
+    assertEquals(2, img1.getSequence().getImages().size());
+    assertEquals(img2, img1.next());
+    this.record.undo();
+    assertEquals(1, img1.getSequence().getImages().size());
+    this.record.redo();
+    this.record.addCommand(cmd2);
+    assertEquals(3, img1.getSequence().getImages().size());
+    assertEquals(img3, img1.next().next());
 
     try {
-      this.record.addCommand(new CommandJoin(Arrays
-              .asList(new MapillaryAbstractImage[]{this.img1, this.img2,
-                      this.img3})));
+      this.record.addCommand(new CommandJoin(Arrays.asList(new MapillaryAbstractImage[]{img1, img2, img3})));
       fail();
     } catch (IllegalArgumentException e) {
       // Expected output.
-    } catch (Exception e) {
-      fail();
     }
   }
@@ -231,12 +225,8 @@
 
     try {
-      this.record.addCommand(new CommandUnjoin(Arrays
-              .asList(new MapillaryAbstractImage[]{this.img1, this.img2,
-                      this.img3})));
+      this.record.addCommand(new CommandUnjoin(Arrays.asList(new MapillaryAbstractImage[]{img1, img2, img3})));
       fail();
     } catch (IllegalArgumentException e) {
       // Expected output.
-    } catch (Exception e) {
-      fail();
     }
   }
@@ -247,13 +237,11 @@
   @Test
   public void commandDeleteTest() {
-    CommandJoin join1 = new CommandJoin(
-            Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2}));
-    CommandJoin join2 = new CommandJoin(
-            Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3}));
+    CommandJoin join1 = new CommandJoin(Arrays.asList(new MapillaryAbstractImage[]{img1, img2}));
+    CommandJoin join2 = new CommandJoin(Arrays.asList(new MapillaryAbstractImage[]{img2, img3}));
 
     CommandDelete cmd1 = new CommandDelete(
-            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1})));
+            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{img1})));
     CommandDelete cmd2 = new CommandDelete(
-            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3})));
+            new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{img2, img3})));
 
     this.record.addCommand(join1);
@@ -261,9 +249,7 @@
 
     MapillaryLayer
-            .getInstance()
-            .getData()
-            .add(
-                    new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2,
-                            this.img3})));
+        .getInstance()
+        .getData()
+        .add(new ConcurrentSkipListSet<>(Arrays.asList(new MapillaryAbstractImage[]{img1, img2, img3})));
 
     this.record.addCommand(cmd1);
