### Question:
JerseyUtils { public static boolean testParameterizedType(Class<?> rawType, Class<?>[] parameterTypes, Type type) { if (!testType(rawType, type)) { return false; } while (type != null) { Type[] parameters = null; if (type instanceof ParameterizedType) { parameters = ((ParameterizedType) type).getActualTypeArguments(); if (parameters.length == parameterTypes.length) { boolean compatible = true; for (int i = 0; compatible && i < parameters.length; i++) { compatible = testType(parameterTypes[i], parameters[i]); } if (compatible) { return true; } } } if (type instanceof Class<?>) { type = ((Class<?>) type).getGenericSuperclass(); } else { return false; } } return false; } private  JerseyUtils(); static FieldQuery createFieldQueryForFindRequest(String name, String field, 
                                                            String language, Integer limit, 
                                                            Integer offset, String ldpath); static boolean testType(Class<?> required, Type type); static boolean testParameterizedType(Class<?> rawType, Class<?>[] parameterTypes, Type type); static Map<String,String> parseForm(InputStream entityStream,String charset); static final Set<String> REPRESENTATION_SUPPORTED_MEDIA_TYPES; static final Set<String> ENTITY_SUPPORTED_MEDIA_TYPES; static final Set<String> QUERY_RESULT_SUPPORTED_MEDIA_TYPES; }### Answer:
@Test public void testParameterisedType() { Assert.assertTrue(JerseyUtils.testParameterizedType(Map.class, new Class[]{String.class,Collection.class}, TestMap.class)); }