@Test
public void fromUrlEncodedShouldParseQueryStringAndReturnEncodedParams(){

    List<EncodedPair> actual = Pairs.fromUrlEncoded("p1=v%201&p1=v%202&p2=v%203");
    assertNotNull(actual);
    assertEquals(3, actual.size());
    assertEquals("p1", actual.get(0).getName());
    assertEquals("v%201", actual.get(0).getValue());
    assertEquals("p1", actual.get(1).getName());
    assertEquals("v%202", actual.get(1).getValue());
    assertEquals("p2", actual.get(2).getName());
    assertEquals("v%203", actual.get(2).getValue());
}