@Test
public void toPairDefaultToEncodedShouldEncodedAndBuildASimpleEncodedPairWithGivenParams() throws UnsupportedEncodingException {

    EncodedPair actual = Pairs.toPair("some name", "some value", UTF8);
    assertNotNull(actual);
    assertEquals(SimpleEncodedPair.class, actual.getClass());
    assertEquals("some%20name", actual.getName());
    assertEquals("some%20value", actual.getValue());
}