@Test
public void getContentEncodingGetItFromHttpResource() throws IOException {

    when(mockResource.getContentEncoding()).thenReturn("value");
    assertEquals("value", toTest.getContentEncoding());
}