@Test
public void testDecodingPartialContent() {

    MatcherAssert.assertThat(PercentCodec.decode("blah%21%20%", StandardCharsets.UTF_8),
            CoreMatchers.equalTo("blah! %"));
    MatcherAssert.assertThat(PercentCodec.decode("blah%21%20%a", StandardCharsets.UTF_8),
            CoreMatchers.equalTo("blah! %a"));
    MatcherAssert.assertThat(PercentCodec.decode("blah%21%20%wa", StandardCharsets.UTF_8),
            CoreMatchers.equalTo("blah! %wa"));
}