### Question:
RESTEasyUtil { public static List<String> getParamValues(Map<String, String> contextParams, String paramName) { if (contextParams != null) { String providers = contextParams.get(paramName); if (providers != null) { return Arrays.asList(providers.split(",")); } } return null; } private  RESTEasyUtil(); static List<String> getParamValues(Map<String, String> contextParams, String paramName); static List<Class<?>> getProviderClasses(Map<String, String> contextParams); static Map<Class<?>, Class<?>> getExceptionProviderMap(Map<String, String> contextParams); static List<ClientErrorInterceptor> getClientErrorInterceptors(Map<String, String> contextParams);  }### Answer:
@Test public void testGetProviders() throws Exception { Assert.assertNull(RESTEasyUtil.getParamValues(null, ResteasyContextParameters.RESTEASY_PROVIDERS)); Assert.assertNull(RESTEasyUtil.getParamValues(contextParams, ResteasyContextParameters.RESTEASY_PROVIDERS)); List<String> providers = RESTEasyUtil.getParamValues(contextParamsWithProviders, ResteasyContextParameters.RESTEASY_PROVIDERS); Assert.assertEquals(2, providers.size()); Assert.assertEquals(STRING_CLASS_NAME, providers.get(0)); Assert.assertEquals(BAD_CLASS_NAME, providers.get(1)); }