### Question:
AggregatingToolScanManager implements ToolScanManager { @Override public ToolScanPolicy getPolicy() { return new ToolScanPolicy( preferenceManager.getPreference( SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_DENY_NOT_SCANNED), preferenceManager.getPreference( SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_MAX_CRITICAL_VULNERABILITIES), preferenceManager.getPreference( SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_MAX_HIGH_VULNERABILITIES), preferenceManager.getPreference( SystemPreferences.DOCKER_SECURITY_TOOL_POLICY_MAX_MEDIUM_VULNERABILITIES)); }  @PostConstruct void init(); ToolVersionScanResult scanTool(Tool tool, String tag, Boolean rescan); ToolVersionScanResult scanTool(Long toolId, String tag, Boolean rescan); ToolExecutionCheckStatus checkTool(Tool tool, String tag); @Override ToolScanPolicy getPolicy(); static final String NOT_DETERMINED; }### Answer:
@Test public void testGetSecurityPolicy() { ToolScanPolicy policy = aggregatingToolScanManager.getPolicy(); Assert.assertEquals(MAX_CRITICAL_VULNERABILITIES, policy.getMaxCriticalVulnerabilities()); Assert.assertEquals(MAX_HIGH_VULNERABILITIES, policy.getMaxHighVulnerabilities()); Assert.assertEquals(MAX_MEDIUM_VULNERABILITIES, policy.getMaxMediumVulnerabilities()); Assert.assertEquals(DENY_NOT_SCANNED, policy.isDenyNotScanned()); }