### Question:
StateDeactivator { public void deactivateState(StateGroup stateGroup) throws InterruptedException { List<DataGroupInfo> stateLayers = stateGroup.getStateLayers(); myActivator.setGroupsActive(stateLayers, false); } StateDeactivator(DataGroupActivator activator); void deactivateState(StateGroup stateGroup);  }### Answer:
@Test public void test() throws InterruptedException { WMSEnvoy envoy = StateUtils.createEnvoy(); DataGroupInfo parent = createParent(); DataTypeInfo dataType = createDataType(parent); WMSLayerValueProvider layer = createLayer(dataType); WMSLayerEnvoy layerEnvoy = StateUtils.createLayerEnvoy(layer); StateGroup group = createStateGroup(parent); DataGroupActivator groupActivator = createDataGroupActivator(parent); EasyMock.replay(parent, envoy, dataType, layer, layerEnvoy); StateDeactivator deactivator = new StateDeactivator(groupActivator); deactivator.deactivateState(group); EasyMock.verify(parent, envoy, dataType, layer, layerEnvoy); }