### Question:
HttpStopwatchSource extends AbstractStopwatchSource<HttpServletRequest> { public IncludeHttpMethodName getIncludeHttpMethodName() { return includeHttpMethodName; } HttpStopwatchSource(Manager manager); String getPrefix(); void setPrefix(String prefix); String getReplaceUnallowed(); void setReplaceUnallowed(String replaceUnallowed); IncludeHttpMethodName getIncludeHttpMethodName(); void setIncludeHttpMethodName(IncludeHttpMethodName includeHttpMethodName); @Override boolean isMonitored(HttpServletRequest httpServletRequest); @Override Stopwatch getMonitor(HttpServletRequest request); static StopwatchSource<HttpServletRequest> newCacheStopwatchSource(StopwatchSource<HttpServletRequest> stopwatchSource); static final String DEFAULT_SIMON_PREFIX; }### Answer:
@Test public void testIncludeNoMethodsByDefault() { Assert.assertEquals(httpStopwatchSource.getIncludeHttpMethodName(), HttpStopwatchSource.IncludeHttpMethodName.NEVER); }
@Test public void testGetIncludeHttpMethodName() { httpStopwatchSource.setIncludeHttpMethodName(HttpStopwatchSource.IncludeHttpMethodName.ALWAYS); Assert.assertEquals(httpStopwatchSource.getIncludeHttpMethodName(), HttpStopwatchSource.IncludeHttpMethodName.ALWAYS); }