CollectionExtractor implements Extractor { public Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue) throws IllegalAccessException, InvocationTargetException { throw new IllegalArgumentException("A collection (beside Lists and Maps) cannot be modified"); }  Class getType(); Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify); Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue); boolean canSetValue();  }
@Test(expectedExceptions = {IllegalArgumentException.class}) public void failed() throws InvocationTargetException, IllegalAccessException { extractor.setObjectValue(null,null,null,null); }