@Test
public void clearForMultipleActorsThenUnregisterSpawnedActorWhenTheLastActorUnregisters() {

    ActorSystemInstance system = ActorSystemInstance.getInstance("5", configuration());
    OwnerTwo owner = new OwnerTwo();
    OwnerTwo ownerTwo = new OwnerTwo();
    system.register(ownerTwo);
    system.register(owner);
    system.unregister(owner);
    system.unregister(ownerTwo);
    assertTrue(system.getActorsInjector().getInjectedActorsOwners().isEmpty());
}