### Question:
Collision extends NameableAbstract { public Collision(String name, int offsetX, int offsetY, int width, int height, boolean mirror) { super(name); this.offsetX = offsetX; this.offsetY = offsetY; this.width = width; this.height = height; this.mirror = mirror; } Collision(String name, int offsetX, int offsetY, int width, int height, boolean mirror); int getOffsetX(); int getOffsetY(); int getWidth(); int getHeight(); boolean hasMirror(); @Override String toString(); static final Collision AUTOMATIC; }### Answer:
@Test void testCollision() { final Collision collision = new Collision("void", 1, 2, 3, 4, true); assertEquals("void", collision.getName()); assertTrue(collision.getOffsetX() == 1); assertTrue(collision.getOffsetY() == 2); assertTrue(collision.getWidth() == 3); assertTrue(collision.getHeight() == 4); assertTrue(collision.hasMirror()); }