ContainerName { public String asString() { return name; } ContainerName(final String name); String asString(); static ContainerName fromHostname(final String hostName); @Override int hashCode(); @Override boolean equals(final Object o); @Override String toString();  }
@Test public void testAlphanumericalContainerName() { String name = "container123"; ContainerName containerName = new ContainerName(name); assertEquals(containerName.asString(), name); }
@Test public void testAlphanumericalWithDashContainerName() { String name = "container-123"; ContainerName containerName = new ContainerName(name); assertEquals(containerName.asString(), name); }