### Question:
AddJslInfoVariableProcessor implements JsProcessor { public boolean process(JsRequest jsRequest, JsResponseBuilder builder) { JsUri jsUri = jsRequest.getJsUri(); if (!jsUri.isNohint()) { String features = getFeatures(jsUri); builder.prependJs(String.format(FEATURES_HINT_TEMPLATE, features), CODE_ID, true); builder.prependJs(BASE_HINT_TEMPLATE, CODE_ID); } return true; } @Inject  AddJslInfoVariableProcessor(FeatureRegistryProvider featureRegistryProvider); boolean process(JsRequest jsRequest, JsResponseBuilder builder);  }### Answer:
@Test public void skipsWhenNohintIsTrue() throws Exception { setJsUri(URI + "?nohint=1"); control.replay(); processor.process(request, response); assertEquals("", response.build().toJsString()); control.verify(); }
@Test public void featureInfo() throws Exception { setJsUri(URI); control.replay(); processor.process(request, response); String expected = String.format(AddJslInfoVariableProcessor.BASE_HINT_TEMPLATE + AddJslInfoVariableProcessor.FEATURES_HINT_TEMPLATE, LIBS_JS); assertEquals(expected, response.build().toJsString()); control.verify(); }