@Test
public void testContentWithContentTypeToString() throws Exception {

    final String content = constructString(RUSSIAN_HELLO);
    final byte[] bytes = content.getBytes(StandardCharsets.UTF_8);
    final BasicHttpEntity entity = new BasicHttpEntity(new ByteArrayInputStream(bytes),
            ContentType.TEXT_PLAIN.withCharset(StandardCharsets.UTF_8));
    final String s = EntityUtils.toString(entity, "ISO-8859-1");
    Assert.assertEquals(content, s);
}