@Test
public void OnEntityDestroyedTest() {

    context.OnEntityWillBeDestroyed((IContext pool, IEntity e) -> assertTrue(e.isEnabled()));
    context.OnEntityDestroyed((pool, e) -> assertFalse(e.isEnabled()));
    context.destroyAllEntities();
    assertEquals(0, context.getCount());
}