@Test
public void shouldReturnPairIfAttributeFound() {

    EncodedPair actual = toTest.getAttribute("attr2");
    assertNotNull(actual);
    assertEquals("attr2", actual.getName());
    assertEquals("val%202", actual.getValue());
}