DatastoreManager extends ManagerBase implements StoreManager { @Override public int getActiveSessionsFull() { int sessionCount = 0; try { sessionCount = store.getSize(); } catch (IOException e) { log.error("An error occurred while counting sessions: ", e); } return sessionCount; }  @Override Session findSession(String id); @Override void load(); @Override void unload(); @Override void removeSuper(Session session); @Override void remove(Session session); @Override int getActiveSessionsFull(); @Override Set<String> getSessionIdsFull(); @Override void processExpires(); Store getStore(); void setStore(Store store);  }
@Test public void testCountOfActiveSession() throws IOException { manager.getActiveSessionsFull(); verify(store).getSize(); }