@Test(expected = UnsupportedOperationException.class) public void unsupportedOperationExceptionThrownWhenModifyingKeys() { RequestConfigurationItemsCommand command = new RequestConfigurationItemsCommand(CHARGING_STATION_ID, CONFIGURATION_KEYS, ROOT_IDENTITY_CONTEXT); command.getKeys().add("baz"); }
public Set<String> getKeys() { return keys; }
RequestConfigurationItemsCommand { public Set<String> getKeys() { return keys; } }
RequestConfigurationItemsCommand { public Set<String> getKeys() { return keys; } RequestConfigurationItemsCommand(ChargingStationId chargingStationId, Set<String> keys, IdentityContext identityContext); }
RequestConfigurationItemsCommand { public Set<String> getKeys() { return keys; } RequestConfigurationItemsCommand(ChargingStationId chargingStationId, Set<String> keys, IdentityContext identityContext); ChargingStationId getChargingStationId(); Set<String> getKeys(); IdentityContext getIdentityContext(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
RequestConfigurationItemsCommand { public Set<String> getKeys() { return keys; } RequestConfigurationItemsCommand(ChargingStationId chargingStationId, Set<String> keys, IdentityContext identityContext); ChargingStationId getChargingStationId(); Set<String> getKeys(); IdentityContext getIdentityContext(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }