AdapterStateSummary { public void addChannelState(String uniqueId, ComponentState state) { Args.notNull(state, "componentState"); if (!isEmpty(uniqueId)) { this.addChannelState(new KeyValuePair(uniqueId, state.getClass().getName())); } } AdapterStateSummary();  AdapterStateSummary(Adapter adapter); void setAdapterState(String uniqueId, ComponentState state); void setAdapterState(KeyValuePair state); KeyValuePair getAdapterState(); void addChannelState(String uniqueId, ComponentState state); void addChannelState(KeyValuePair state); KeyValuePairSet getChannelStates(); void setChannelStates(KeyValuePairSet states); String getLastStartTime(); void setLastStartTime(String lastStartTime); String getLastStopTime(); void setLastStopTime(String lastStopTime);  }
@Test public void testToString() { AdapterStateSummary s1 = new AdapterStateSummary(); s1.addChannelState(new KeyValuePair(DEFAULT_KEY, ClosedState.getInstance().getClass().getName())); assertNotNull(s1.toString()); }