assertEquals(ShipImpl.class, shipFactory.getClass());
shipFactory.hitPoints(100);
Entity e1 = shipFactory.size(10, 20).create();
Entity e2 = shipFactory.create();
assertEquals(10, e1.getComponent(Size.class).width, 0.001f);
assertEquals(20, e1.getComponent(Size.class).height, 0.001f);
assertEquals(100, e1.getComponent(HitPoints.class).hitpoints);
assertEquals(0, e2.getComponent(Size.class).width, 0.001f);