WDSObject implements IObject, IObjectWrapper { @Override public void deleteField(final IFieldName name) throws DeleteValueException, InvalidArgumentException { throw new DeleteValueException("Method not implemented."); } WDSObject(final IObject wrapperConfig);  WDSObject(final WDSObjectFieldSet fieldSet); @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 void init(final IObject environment); @Override IObject getEnvironmentIObject(final IFieldName fieldName);  }
@Test (expected = DeleteValueException.class) public void checkExceptionOnUseDeleteMethod() throws Exception { IObject wObj = new WDSObject((IObject) null); wObj.deleteField(new FieldName("field")); fail(); }