FiltersHolder { public DepthHandler getDepthHandler() { return depthHandler; }  ScopeHandler getScopeHandler(); Decorator getDecorator(); DepthHandler getDepthHandler(); CorporateFilter getCorporateFilter(); void setCorporateFilter(final CorporateFilter filter); void addFilter(final Filter newFilter); void init(final MultivaluedMap<String, String> queryParameters); boolean shouldBeInReport(final DbLicense license); boolean shouldBeInReport(final DbDependency dependency); Map<String, Object> getArtifactFieldsFilters(); Map<String, Object> getModuleFieldsFilters();  }
@Test public void checkIfShouldGoDeeper(){ final FiltersHolder filters = new FiltersHolder(); assertTrue(filters.getDepthHandler().shouldGoDeeper(0)); assertFalse(filters.getDepthHandler().shouldGoDeeper(1)); filters.getDepthHandler().setDepth(2); assertTrue(filters.getDepthHandler().shouldGoDeeper(1)); assertFalse(filters.getDepthHandler().shouldGoDeeper(2)); filters.getDepthHandler().setFullRecursive(true); assertTrue(filters.getDepthHandler().shouldGoDeeper(20)); }