### Question:
RemoveBalanceFilter extends BasicFilter { @Override public HttpResponse execute(HttpResponse response) { JsonParser parser = new JsonParser(); JsonObject json= parser.parse(response.getContent().toString(CharsetUtil.UTF_8)).getAsJsonObject(); log.info("response body: " + json.toString()); json.remove("balance"); log.info("modified response body: " + json.toString()); byte[] newContent = json.toString().getBytes(CharsetUtil.UTF_8); response.setContent(ChannelBuffers.copiedBuffer(newContent)); HttpHeaders.setContentLength(response, newContent.length); return response; }  @Override HttpResponse execute(HttpResponse response); static Logger log; }### Answer:
@Test public void when_return_customer_remove_balance_field() throws Exception { HttpResponse res = filter.execute(response); assertEquals(new String(res.getContent().array()), "{\"customerId\":\"1223\",\"email\":\"rossi.test@apifest.com\"}"); }