@Test
public void toPairShouldNotEncodedAndBuildASimpleEncodedPairWithGivenParams() throws UnsupportedEncodingException {

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