@Test
public void failsGetBodyAsCustomTypeWhenMessageBodyReaderForThisTypeIsNotAvailable() throws Exception {

    Class<List> type = List.class;
    ParameterizedType genericType = newParameterizedType(List.class, String.class);
    InputStream in = mock(InputStream.class);
    when(fileItem.getInputStream()).thenReturn(in);
    when(fileItem.getContentType()).thenReturn(TEXT_PLAIN_TYPE.toString());
    thrown.expect(RuntimeException.class);
    inputItem.getBody(type, genericType);
}