DeweyVersion { @Override public String toString() { return Arrays.stream(versions) .mapToObj(Integer::toString) .collect(Collectors.joining(".")); } DeweyVersion();  DeweyVersion(final int run);  DeweyVersion(final String version); private  DeweyVersion(int[] versions); DeweyVersion addRun(); DeweyVersion addRun(final int offset); int length(); boolean isCompatible(DeweyVersion that); DeweyVersion addStage(); @Override String toString();  }
@Test public void testDeweyVersionConstructor() { assertEquals("1", new DeweyVersion(1).toString()); }
@Test public void testStringConstructor() { assertEquals(new DeweyVersion("1.0.1").toString(), "1.0.1"); }