### Question:
ActionHandler { public abstract Percept performAction(Action action) throws ActException;  abstract boolean isSupportedByEntity(Action action); abstract Percept performAction(Action action); abstract void reset();  }### Answer:
@Test public void testPerformAction() throws ActException { Percept percept = handler.performAction(new Action("getX")); assertEquals(new Percept("getX", new Numeral(0)), percept); percept = handler.performAction(new Action("setX", new Numeral(1))); assertEquals(null, percept); percept = handler.performAction(new Action("getX")); assertEquals(new Percept("getX", new Numeral(1)), percept); }