Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/org/apache/http/client/URLEncodedUtilsTest.java
package org.apache.http.client;

import static org.junit.Assert.assertEquals;

import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;
import org.junit.Test;

import java.net.URI;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.List;

/**
 * Example on how to decode URL parameters.
 *
 * @author Github jjYBdx4IL Projects
 */
public class URLEncodedUtilsTest {

    @Test
    public void testUrlParameterDecode() throws URISyntaxException {
        List<NameValuePair> result = URLEncodedUtils.parse(new URI("http://test/?&arg1=value1%3D"),
                StandardCharsets.UTF_8);

        assertEquals(1, result.size());
        assertEquals("arg1", result.get(0).getName());
        assertEquals("value1=", result.get(0).getValue());
    }

}
-------------------------------------------------------------------------------
Test set: org.apache.http.client.URLEncodedUtilsTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.http.client.URLEncodedUtilsTest
testUrlParameterDecode  Time elapsed: 0 s