### Question:
Uploader { static UploadRequest getUploadRequest(InputStreamReader inputStreamReader) throws IOException { return JSON_PARSER.parseAndClose(inputStreamReader, UploadRequest.class); } Uploader(Builder builder); static void main(String[] args);  }### Answer:
@Test public void testGetUploadRequest() throws Exception { String testJsonFile = "{" + "\"sourceId\" : \"ds1\"," + "\"requests\" : [" + " {\"name\" : \"item1\", \"type\" : \"items.delete\"}" + "] " + "}"; UploadRequest request = Uploader.getUploadRequest(new InputStreamReader( new ByteArrayInputStream(testJsonFile.getBytes(StandardCharsets.UTF_8)))); UploadRequest.DeleteRequest deleteRequest = new UploadRequest.DeleteRequest(); deleteRequest.name = "item1"; deleteRequest.type = "items.delete"; assertEquals("ds1", request.sourceId); assertEquals(Collections.singletonList(deleteRequest), request.requests); }