### Question:
SizeSelector extends AbstractSelector<Creature> { @Override public boolean test(Creature t) { return t.getSize().equals(size); } SizeSelector(Size s); @Override boolean test(Creature t);  }### Answer:
@Test public void testMovement() { final var normalCreature = mock(Creature.class); when(normalCreature.getSize()).thenReturn(Size.NORMAL); final var smallCreature = mock(Creature.class); when(smallCreature.getSize()).thenReturn(Size.SMALL); final var normalSelector = new SizeSelector(Size.NORMAL); assertTrue(normalSelector.test(normalCreature)); assertFalse(normalSelector.test(smallCreature)); }