@Test
public void writesFileToOutputStream() throws Exception {

    thrown.expect(webApplicationExceptionBadRequestMatcher());
    noFileEntityProvider.writeTo(null, null, null, null, null, null, null);
}