@Test
public void setContentTypeShouldSetItIntoHttpUrlConnection() throws IOException {

    toTest.setContentType("value");
    verify(httpURLConnection).setRequestProperty("Content-Type", "value");
}