class ReflectionAssert {

  public static void assertPropertiesNotNull(String message, Object object) {
    Set<Field> fields = ReflectionUtils.getAllFields(object.getClass());
    for (Field field : fields) {
      if (!Modifier.isStatic(field.getModifiers())) {
        String formattedMessage = formatMessage(
            message,
            "Property '" + field.getName() + "' in object '" + object + "' is null "
        );
        assertNotNull(ReflectionUtils.getFieldValue(object, field), formattedMessage);
      }
    }

  }

}