@Test public void getClass_dynamicObject_ok() { assertEquals(InterfaceMap.getClass(q), PossibleProperties.class); }
public static Class<?> getClass(Object dynamicObject) { Preconditions.checkArgument(isDynamicObject(dynamicObject), "Object must be DynamicObject"); return dynamicObject.getClass().getInterfaces()[0]; }
InterfaceMap { public static Class<?> getClass(Object dynamicObject) { Preconditions.checkArgument(isDynamicObject(dynamicObject), "Object must be DynamicObject"); return dynamicObject.getClass().getInterfaces()[0]; } }
InterfaceMap { public static Class<?> getClass(Object dynamicObject) { Preconditions.checkArgument(isDynamicObject(dynamicObject), "Object must be DynamicObject"); return dynamicObject.getClass().getInterfaces()[0]; } private  InterfaceMap(); }
InterfaceMap { public static Class<?> getClass(Object dynamicObject) { Preconditions.checkArgument(isDynamicObject(dynamicObject), "Object must be DynamicObject"); return dynamicObject.getClass().getInterfaces()[0]; } private  InterfaceMap(); @SuppressWarnings("unchecked") static T createInstance(Class<T> interfaceClass, Map<String, Object> backingMap); static T createInstance(Class<T> interfaceClass); static boolean isDynamicObject(Object object); static Class<?> getClass(Object dynamicObject); static Map<String, Object> getBackingMap(Object dynamicObject); }
InterfaceMap { public static Class<?> getClass(Object dynamicObject) { Preconditions.checkArgument(isDynamicObject(dynamicObject), "Object must be DynamicObject"); return dynamicObject.getClass().getInterfaces()[0]; } private  InterfaceMap(); @SuppressWarnings("unchecked") static T createInstance(Class<T> interfaceClass, Map<String, Object> backingMap); static T createInstance(Class<T> interfaceClass); static boolean isDynamicObject(Object object); static Class<?> getClass(Object dynamicObject); static Map<String, Object> getBackingMap(Object dynamicObject);  }