ConfigurationObject implements IObject { @Override public void setValue(final IFieldName name, final Object value) throws ChangeValueException, InvalidArgumentException { if (null == name) { throw new InvalidArgumentException("Name parameter should not be null."); } body.put(name, value); canonizedBody.remove(name); } ConfigurationObject(final String body);  ConfigurationObject(final Map<IFieldName, Object> objectEntries);  ConfigurationObject(); @Override Object getValue(final IFieldName name); @Override void setValue(final IFieldName name, final Object value); @Override void deleteField(final IFieldName name); @Override T serialize(); @Override Iterator<Map.Entry<IFieldName, Object>> iterator(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test (expected = InvalidArgumentException.class) public void checkInvalidArgumentExceptionOnOnNullFieldNameInSetValue() throws Exception { IObject object = new ConfigurationObject(); object.setValue(null, new Object()); fail(); }