@Test
public void readsContentOfEntityStreamAsFile() throws Exception {

    File result = fileEntityProvider.readFrom(File.class, null, null, null, null, new ByteArrayInputStream(testContent));
    assertTrue(result.exists());
    byte[] bytes = Files.toByteArray(result);
    assertArrayEquals(testContent, bytes);
}