@Test
public void testUploadFileDirect() throws Exception {

    SchemaParserDescriptor descriptor = createMockParserDescriptor();
    SchemaDiscoveryRestController c = new SchemaDiscoveryRestController();
    Response response = c.uploadFile(ObjectMapperSerializer.serialize(descriptor), new ByteArrayInputStream("ABC".getBytes()), null);
    assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
}