@Test
public void scheduleMessageIdToRegisteredActorAfterDelay() throws Exception {

    final ActorSystemInstance actorSystem = ActorSystemInstance
            .getInstance("scheduleMessageIdToRegisteredActorAfterDelay");
    MockActor actor = new TestAsync<MockActor>().apply(new Function<CountDownLatch, MockActor>() {
        @Override
        public MockActor apply(@NonNull CountDownLatch countDownLatch) {
            MockActor actor = new MockActorEleven(countDownLatch);
            actorSystem.register(actor);
            ActorScheduler.after(10, actorSystem).send(1, MockActorEleven.class);
            return actor;
        }
    });
    actorSystem.unregister(MockActorEleven.class);
    assertTrue(actor.message.getId() == 1);
}