@Test
public void registerActorAndDisposableThroughRegisterWithActor() throws Exception {

    ActorSystemInstance actorSystem = ActorSystemInstance
            .getInstance("registerActorAndDisposableThroughRegisterWithActor");
    final TestActorTwo actor = new TestActorTwo();
    actorSystem.register(actor);
    assertTrue(actorSystem.getMailboxes().containsKey(TestActorTwo.class).blockingGet()
            && !actorSystem.getActorsDisposables().get(TestActorTwo.class).blockingFirst().isDisposed());
}