@Test
public void updateGroupsComponentAddedOrRemovedTest() {

    Position position = new Position();
    Group<TestEntity> group = context.getGroup(TestMatcher.Position());
    group.OnEntityAdded((g, e, idx, pc) -> assertEquals(TestComponentIds.Position, idx));
    entity.addComponent(TestComponentIds.Position, position);
    context.updateGroupsComponentAddedOrRemoved(entity, TestComponentIds.Position, position, context._groupsForIndex);
    context.updateGroupsComponentAddedOrRemoved(entity, TestComponentIds.Position, position, context._groupsForIndex);
    //context.OnGroupCleared = (context, group)->  assertNull(context.OnEntityCreated);
}