private void checkContentType(String contentType, String mail, int position)
throws Exception {
List<Header> headers = headers(mail, position);
assertEquals(1, headers.size());
ResultHeader header = (ResultHeader) headers.get(0);
assertEquals(CONTENT_TYPE, header.getName());
assertEquals(contentType, header.getValue());
}