### Question:
BrandPortalAgentFilter implements AgentFilter { public boolean isIncluded(Agent agent) { final String transportURI = agent.getConfiguration().getTransportURI(); for (final Resource config : brandPortalConfigs) { if (log.isDebugEnabled()) { log.debug("Checking Agent [ {} ] against Brand Portal cloud service config [ {} ] for property [ {} ]", agent.getId(), config.getPath(), PROP_TENTANT_URL); } final ValueMap properties = config.getValueMap(); final String tenantUrl = StringUtils.stripToNull(properties.get(PROP_TENTANT_URL, String.class)); if (StringUtils.isNotBlank(tenantUrl)) { boolean included = StringUtils.startsWith(transportURI, tenantUrl + "/"); if (included) { log.debug("Including replication agent [ {} ]", agent.getId()); return true; } } } return false; } BrandPortalAgentFilter(Resource content); boolean isIncluded(Agent agent);  }### Answer:
@Test public void isIncluded_accept() throws Exception { assertTrue(filter.isIncluded(agentAccept)); }
@Test public void isIncluded_reject() throws Exception { assertFalse(filter.isIncluded(agentReject)); }