EnumExtractor implements Extractor { public Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue) throws IllegalAccessException, InvocationTargetException { throw new IllegalArgumentException("An enum itself is immutable an cannot change its value"); }  Class getType(); Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify); Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue); boolean canSetValue();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void setValue() throws InvocationTargetException, IllegalAccessException { enumExtractor.setObjectValue(null,null,null,null); }