### Question:
AcsCommonsAuthorizableCompatibilityCheck implements ProgressCheckFactory { @Override public ProgressCheck newInstance(final JsonObject config) { final List<Rule> scopeIds = Rules.fromJsonArray(arrayOrEmpty(config, CONFIG_SCOPE_IDS)); return new Check(scopeIds); }  @Override ProgressCheck newInstance(final JsonObject config); static final String NT_REP_AUTHORIZABLE; static final String CONFIG_SCOPE_IDS; }### Answer:
@Test public void testCheckNone() throws Exception { ProgressCheck check = new AcsCommonsAuthorizableCompatibilityCheck() .newInstance(key("scopeIds", arr(Rules.DEFAULT_DENY)).get()); CheckReport reportValid = scanWithCheck(check, pack); assertEquals("No violations when deny all authorizable ids.", 0, reportValid.getViolations().size()); }
@Test public void testCheckAll() throws Exception { ProgressCheck check = new AcsCommonsAuthorizableCompatibilityCheck().newInstance(obj().get()); CheckReport reportValid = scanWithCheck(check, pack); assertEquals("3 violations when allow all authorizable ids.", 3, reportValid.getViolations().size()); }