Introspector { public static String getOpenEngSBModelIdProperty(Class<?> modelClass) { Field field = getOpenEngSBModelIdField(modelClass); return (field == null) ? null : field.getName(); } private  Introspector(); static Map<String, Class<?>> getPropertyTypeMap(Class<?> clazz); static Map<String, Class<?>> getPropertyTypeMap(Class<?> clazz, String... exclude); static Map<String, Object> read(Object object); static List<Field> getAnnotatedFields(Class<?> clazz, Class<? extends Annotation> annotation); static Field getOpenEngSBModelIdField(Class<?> modelClass); static String getOpenEngSBModelIdProperty(Class<?> modelClass); static boolean isModel(Object object); static boolean isModelClass(Class<?> clazz);  }
@Test public void getOpenEngSBModelIdProperty_returnsCorrectProperty() throws Exception { assertEquals("testId", Introspector.getOpenEngSBModelIdProperty(TestModel.class)); assertEquals("testId", Introspector.getOpenEngSBModelIdProperty(SubTestModel.class)); }