@Test public void testIsSet() throws Exception { assertThat(Inspector.isListSetOrArray(methodWithSetResponse.getReturnType()), is(true)); }
public static boolean isListSetOrArray(Class<?> propertyType) { return List.class.isAssignableFrom(propertyType) || Set.class.isAssignableFrom(propertyType) || propertyType.isArray(); }
Inspector { public static boolean isListSetOrArray(Class<?> propertyType) { return List.class.isAssignableFrom(propertyType) || Set.class.isAssignableFrom(propertyType) || propertyType.isArray(); } }
Inspector { public static boolean isListSetOrArray(Class<?> propertyType) { return List.class.isAssignableFrom(propertyType) || Set.class.isAssignableFrom(propertyType) || propertyType.isArray(); }  }
Inspector { public static boolean isListSetOrArray(Class<?> propertyType) { return List.class.isAssignableFrom(propertyType) || Set.class.isAssignableFrom(propertyType) || propertyType.isArray(); }  static Class<?> getGenericClassOfList(Class<?> type, Type listGenericClass); static boolean isListSetOrArray(Class<?> propertyType); static boolean isMap(Class<?> propertyType); }
Inspector { public static boolean isListSetOrArray(Class<?> propertyType) { return List.class.isAssignableFrom(propertyType) || Set.class.isAssignableFrom(propertyType) || propertyType.isArray(); }  static Class<?> getGenericClassOfList(Class<?> type, Type listGenericClass); static boolean isListSetOrArray(Class<?> propertyType); static boolean isMap(Class<?> propertyType);  }