### Question:
CajaJsSubtractingProcessor implements JsProcessor { public boolean process(JsRequest jsRequest, JsResponseBuilder builder) { if (!jsRequest.getJsUri().cajoleContent()) { ImmutableList.Builder<JsContent> listBuilder = ImmutableList.builder(); for (JsContent js : builder.build().getAllJsContent()) { if (!isCajole(js)) { listBuilder.add(js); } } builder.clearJs().appendAllJs(listBuilder.build()); } return true; }  boolean process(JsRequest jsRequest, JsResponseBuilder builder);  }### Answer:
@Test @SuppressWarnings("unchecked") public void noCajoleRequest() throws Exception { JsUri uri = mockJsUri(false); JsRequest request = mockJsRequest(uri); control.replay(); boolean actualReturn = processor.process(request, builder); JsResponse actualResponse = builder.build(); control.verify(); assertTrue(actualReturn); assertEquals(Strings.repeat(NORMAL_CONTENT_JS, 3), actualResponse.toJsString()); }
@Test public void cajoleRequest() throws Exception { JsUri uri = mockJsUri(true); JsRequest request = mockJsRequest(uri); control.replay(); boolean actualReturn = processor.process(request, builder); JsResponse actualResponse = builder.build(); control.verify(); assertTrue(actualReturn); assertEquals(Strings.repeat(NORMAL_CONTENT_JS, 3) + CAJA_CONTENT_JS, actualResponse.toJsString()); }