### Question:
ResponderImpl implements Responder { @Override public void sendError(int statusCode) { logger.debug("response: send error"); try { resp.sendError(statusCode); } catch (IOException e) { logger.error(e.getMessage(), e); } } ResponderImpl(String contentType, HttpServletResponse resp, IntEncoder intEncoder, WBXMLTools wbxmlTools, 
			DOMDumper domDumper); @Override void sendWBXMLResponse(String defaultNamespace, Document doc); @Override void sendXMLResponse(String defaultNamespace, Document doc); @Override void sendResponseFile(String contentType, InputStream file); void sendMSSyncMultipartResponse(String defaultNamespace,
			Document doc, Collection<byte[]> files, boolean gzip); @Override void sendError(int statusCode); @Override void sendNoChangeResponse();  }### Answer:
@Test public void sendError() throws IOException { int status = 123; HttpServletResponse servletResponse = EasyMock.createMock(HttpServletResponse.class); IntEncoder intEncoder = EasyMock.createMock(IntEncoder.class); WBXMLTools wbxmlTools = EasyMock.createMock(WBXMLTools.class); DOMDumper domDumper = EasyMock.createMock(DOMDumper.class); servletResponse.sendError(status); EasyMock.replay(servletResponse, intEncoder, wbxmlTools); ResponderImpl responder = new ResponderImpl("unused content type", servletResponse, intEncoder, wbxmlTools, domDumper); responder.sendError(status); EasyMock.verify(servletResponse, intEncoder, wbxmlTools); }