### Question:
SimpleFeatureActionController { public void remove() { myGroup.getActions().remove(myAction); } SimpleFeatureActionController(DataTypeController typeController, SimpleFeatureActions actions,
            SimpleFeatureActionGroup group, SimpleFeatureAction action); void copy(); void remove();  }### Answer:
@Test public void testRemove() { EasyMockSupport support = new EasyMockSupport(); DataTypeController typeController = createTypeController(support); support.replayAll(); FeatureAction action = new FeatureAction(); SimpleFeatureAction simple = new SimpleFeatureAction(action); SimpleFeatureActionGroup group = new SimpleFeatureActionGroup(); group.getActions().add(simple); SimpleFeatureActions actions = new SimpleFeatureActions(ourLayerId); actions.getFeatureGroups().add(group); SimpleFeatureActionController controller = new SimpleFeatureActionController(typeController, actions, group, simple); controller.remove(); assertTrue(group.getActions().isEmpty()); assertFalse(actions.getFeatureGroups().isEmpty()); support.verifyAll(); }
@Test public void testRemoveMulti() { EasyMockSupport support = new EasyMockSupport(); DataTypeController typeController = createTypeController(support); support.replayAll(); FeatureAction action = new FeatureAction(); SimpleFeatureAction simple = new SimpleFeatureAction(action); SimpleFeatureActionGroup group = new SimpleFeatureActionGroup(); group.getActions().add(simple); FeatureAction action2 = new FeatureAction(); SimpleFeatureAction simple2 = new SimpleFeatureAction(action2); SimpleFeatureActionGroup group2 = new SimpleFeatureActionGroup(); group2.getActions().add(simple2); SimpleFeatureActions actions = new SimpleFeatureActions(ourLayerId); actions.getFeatureGroups().add(group); actions.getFeatureGroups().add(group2); SimpleFeatureActionController controller = new SimpleFeatureActionController(typeController, actions, group, simple); controller.remove(); assertTrue(group.getActions().isEmpty()); assertFalse(actions.getFeatureGroups().isEmpty()); support.verifyAll(); }