HttpResponseFactory { public static BaseResponse getHttpResponse(String responseType) { if (responseType == null) { responseType = "XML"; } if (responseType.equalsIgnoreCase("JSON")) { return new JsonResponse(); } else if (responseType.equalsIgnoreCase("XML")) { return new XMLResponse(); } else { return new BinaryResponse(); } }  static BaseResponse getHttpResponse(String responseType);  }
@Test public void testGetHttpResponse_1() throws Exception { String responseType = null; BaseResponse result = HttpResponseFactory.getHttpResponse(responseType); assertNotNull(result); }
@Test public void testGetHttpResponse_2() throws Exception { String responseType = null; BaseResponse result = HttpResponseFactory.getHttpResponse(responseType); assertNotNull(result); }
@Test public void testGetHttpResponse_3() throws Exception { String responseType = ""; BaseResponse result = HttpResponseFactory.getHttpResponse(responseType); assertNotNull(result); }