### Question:
ResponseParser { public static String encodeParameter(final String parameterName, final String parameterValue) { String name = null; String value = null; try { name = URLEncoder.encode(parameterName, "UTF-8"); value = URLEncoder.encode(parameterValue, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } assert name != null && value != null; return name + "=" + value.replace("+", "%20"); } private  ResponseParser(); static String toURLEncoded(final Class givenClass,
            final Object obj); static String publicField(final Object obj, final Field field); static String nonPublicField(final Class givenClass,
            final Object obj, final Field field); static void publicField(final String parameterName,
            final String parameterValue, final Class givenClass,
            final Object obj); static void nonPublicField(final String parameterName,
            final String parameterValue, final Class givenClass,
            final Object obj); static Object toObject(final String response,
            final Class givenClass); static String encodeParameter(final String parameterName,
            final String parameterValue);  }### Answer:
@Test public void testEncodeParameter() { String parameterName = "name"; String parameterValue = "df aa.d@"; assertEquals(ResponseParser.encodeParameter(parameterName, parameterValue), "name=df%20aa.d%40"); }