PppoeClientManager { public Collection<PppoeSessionInfo> getSessions() { List<PppoeSessionInfo> sessionList = new ArrayList<PppoeSessionInfo>(); clients.values().forEach(clientInfo -> { PppoeSessionInfo sessionInfo = getSession(clientInfo); if (sessionInfo != null) { sessionList.add(sessionInfo); } }); return sessionList; } PppoeClientManager(DeviceService deviceService, DriverService driverService,
                              MastershipService mastershipService, AccessDeviceService accessDeviceService); boolean configClient(String ssid, String paramName, String paramValue); Collection<PppoeClientInfo> getClients(String ssid); Collection<PppoeSessionInfo> getSessions(); void addClient(PppoeDeviceInfo deviceInfo); void removeClient(PppoeDeviceInfo deviceInfo);  }
@Test public void testgetSessionsSsidNull() throws Exception { Collection<PppoeSessionInfo> sessionList; sessionList = clientManager.getSessions(); assertEquals("Incorrect response", 0, sessionList.size()); }