BaseResponse { public String getResponseBody() { return this.response; }  abstract String getValue(String key); String getLogMsg(); int getHttpCode(); void setHttpCode(int code); void setHttpMessage(String msg); void setHeader(String key, String value); String getHttpMsg(); String getHttpHeader(String header); Map<String, String> getHeaders(); void setResponseTime(long time); long getResponseTime(); void setResponseBody(String body); void setResponseBody(byte[] byteArray); String getResponseBody(); String getBody(); byte[] getResponseBytes(); int getResponseSize(); String getCookie(String key); void setCookie(String key, String value); Map<String, String> getCookies(); void logResponse(); static final boolean isDataType(String contentType);  }
@Test public void testGetResponseBody_1() throws Exception { MockResponse fixture = new MockResponse(); fixture.responseTime = 1L; fixture.httpCode = 1; fixture.response = ""; fixture.responseByteArray = new byte[] {}; fixture.rspMessage = ""; fixture.responseLogMsg = ""; String result = fixture.getResponseBody(); assertNotNull(result); }