@Test
public void shouldGetFileAsJson() {

    Response response = fileViewer.json(getAvailableFile());
    Assert.assertEquals(200, response.getStatus());
    Assert.assertNotSame("", response.getEntity());
    Assert.assertTrue(((String) response.getEntity()).startsWith("{"));
    Assert.assertTrue(((String) response.getEntity()).endsWith("}"));
}