public void setFieldValue(String fieldName, Object fieldValue) throws Exception {
      Class<?> c = getClass().getSuperclass();
      Field f = c.getDeclaredField(fieldName);
      f.setAccessible(true);
      f.set(this, fieldValue);
    }
Create a  new resource provider for the given management controller.

@param propertyIds          the property ids
@param keyPropertyIds       the key property ids
@param managementController the management controller
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostComponentResourceProviderTest.java