@Test
public void shouldNotGetFileContents() {

    Response response = fileViewer.get("non-existing-file" + System.currentTimeMillis() + ".txt");
    Assert.assertEquals(404, response.getStatus());
    Assert.assertEquals("File not found", response.getEntity());
}