### Question:
ApplicationRest extends AbstractRest { @GET @Path("{application_name}") @Produces(MediaType.APPLICATION_XML + ";qs=1") public Response getApplication(@PathParam("application_name") String applicationName) { logger.info("GET request to path: /applications/" + applicationName + " in XML format"); Application application = applicationDAO.getByNameWithoutDeployments(applicationName); String xml = XMLBuilder.getApplicationXML(application); return buildResponse(Status.OK, xml); }  @GET @Produces(MediaType.APPLICATION_XML + ";qs=1") Response getApplications(); @GET @Produces(MediaType.APPLICATION_JSON + ";qs=0.5") Response getApplicationsJSON(); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response postApplication(@QueryParam("negotiation") String negotiation, @QueryParam("schema") String schema, String payload); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_JSON) Response postApplicationJSON(@QueryParam("negotiation") String negotiation, @QueryParam("schema") String schema, String payload); @GET @Path("{application_name}") @Produces(MediaType.APPLICATION_XML + ";qs=1") Response getApplication(@PathParam("application_name") String applicationName); @GET @Path("{application_name}") @Produces(MediaType.APPLICATION_JSON + ";qs=0.5") Response getApplicationJSON(@PathParam("application_name") String applicationName); @DELETE @Path("{application_name}") Response deleteApplication(@PathParam("application_name") String applicationName);  }### Answer:
@Test public void getApplicationTest() { ApplicationRest applicationRest = getApplicationRestForGetApplicationTests(); Response response = applicationRest.getApplication("1"); assertEquals(200, response.getStatus()); String xml = (String) response.getEntity(); Application applicationResponse = ModelConverter.xmlApplicationToObject(xml); verifyGetApplicationTests(applicationResponse); }