PrefixedActorNameFactory { public String createActorName() { final StringBuilder actorNameBuilder = new StringBuilder(); actorNameBuilder.append(prefix).append(PREFIX_SEPARATOR); akka.util.Helpers.base64(counter.getAndIncrement(), actorNameBuilder); return actorNameBuilder.toString(); } private  PrefixedActorNameFactory(final String prefix); static PrefixedActorNameFactory of(final String prefix); String createActorName();  }
@Test public void createActorNames() { assertThat(underTest.createActorName()).isEqualTo(createExpectedName("a")); assertThat(underTest.createActorName()).isEqualTo(createExpectedName("b")); }