@Test
public void goodConverter() throws IOException {

    ContentTypeBasedRespConverter<String> converter = new ContentTypeBasedRespConverter<>();
    converter.add(MediaType.parse("text/plain"), new Converters.StringResponseConverter());
    converter.add(MediaType.parse("application/xml"), new Converters.StringResponseConverter());
    converter.add(MediaType.parse("application/json"), new Converters.StringResponseConverter
            ());
    String s = converter.convert(networkResponse);
    assertThat(s).isEqualTo("{\"key\" : \"value\"}");
}