### Question:
Poller extends AbstractServiceDaemon { protected boolean pollableServiceInPackage(String ipAddr, String serviceName, Package pkg) { if (pkg.getRemote()) { log().debug("pollableServiceInPackage: this package: "+pkg.getName()+", is a remote monitor package."); return false; } if (!m_pollerConfig.isServiceInPackageAndEnabled(serviceName, pkg)) return false; boolean inPkg = m_pollerConfig.isInterfaceInPackage(ipAddr, pkg); if (inPkg) return true; if (m_initialized) { m_pollerConfig.rebuildPackageIpListMap(); return m_pollerConfig.isInterfaceInPackage(ipAddr, pkg); } return false; } Poller(); void setDataSource(DataSource dataSource); EventIpcManager getEventManager(); void setEventManager(EventIpcManager eventMgr); PollerEventProcessor getEventProcessor(); void setEventProcessor(PollerEventProcessor eventProcessor); PollableNetwork getNetwork(); void setNetwork(PollableNetwork network); void setQueryManager(QueryManager queryManager); QueryManager getQueryManager(); PollerConfig getPollerConfig(); void setPollerConfig(PollerConfig pollerConfig); PollOutagesConfig getPollOutagesConfig(); void setPollOutagesConfig(PollOutagesConfig pollOutagesConfig); Scheduler getScheduler(); void setScheduler(LegacyScheduler scheduler); void closeOutagesForNode(Date closeDate, int eventId, int nodeId); void closeOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr); void closeOutagesForService(Date closeDate, int eventId, int nodeId, String ipAddr, String serviceName); static Poller getInstance(); ServiceMonitor getServiceMonitor(String svcName); void scheduleService(final int nodeId, final String nodeLabel, final String ipAddr, final String svcName); boolean packageIncludesIfAndSvc(Package pkg, String ipAddr, String svcName); void refreshServicePackages(); void refreshServiceThresholds();  }### Answer:
@Test public void testIsRemotePackage() { Properties p = new Properties(); p.setProperty("org.opennms.netmgt.ConfigFileConstants", "ERROR"); MockLogAppender.setupLogging(p); Package pkg = new Package(); pkg.setName("SFO"); pkg.setRemote(true); Poller poller = new Poller(); assertFalse(poller.pollableServiceInPackage(null, null, pkg)); poller = null; }