### Question:
SecurityServiceImpl extends RemoteServiceServlet implements SecurityService { @Override public void kill(String sid) { try { SessionManager.get().kill(sid); SessionManager.get().removeSid(getThreadLocalRequest()); HttpSession httpSession = SessionManager.get().getServletSession(sid); if (httpSession != null) httpSession.invalidate(); } catch (Throwable t) { log.warn(t.getMessage()); } }  static GUITenant getTenant(long tenantId); static GUITenant fromTenant(Tenant tenant); static GUITenant getTenant(String tenantName); GUISession loadSession(Session sess, String locale); @Override GUISession getSession(String locale); @Override void logout(); @Override int changePassword(Long requestorUserId, long userId, String oldPassword, String newPassword,
			boolean notify); @Override void addUserToGroup(long groupId, long userId); @Override void deleteGroup(long groupId); @Override void deleteUser(long userId); @Override GUIGroup getGroup(long groupId); @Override GUIUser getUser(long userId); @Override void removeFromGroup(long groupId, long[] userIds); @Override GUIGroup saveGroup(GUIGroup group); @Override GUIUser saveUser(GUIUser user, GUIInfo info); @Override GUIUser saveProfile(GUIUser user); @Override GUIUser saveInterfaceSettings(GUIUser user); @Override void kill(String sid); @Override GUISecuritySettings loadSettings(); @Override boolean saveSettings(GUISecuritySettings settings); @Override void applyRights(GUIMenu menu); @Override GUIMenu getMenu(long menuId); @Override GUIUser[] searchUsers(String username, String groupId); @Override GUISequence[] loadBlockedEntities(); @Override void removeBlockedEntities(long[] ids); @Override void replicateUsersSettings(long masterUserId, Long[] userIds, boolean gui, boolean groups);  }### Answer:
@Test public void testKill() { SessionManager sm = SessionManager.get(); sm.clear(); Session session1 = sm.newSession("admin", "admin", null); Assert.assertNotNull(session1); Session session2 = sm.newSession("admin", "admin", null); Assert.assertNotNull(session2); Assert.assertFalse(session1.equals(session2)); Assert.assertEquals(2, sm.getSessions().size()); service.kill(session1.getSid()); Assert.assertTrue(sm.isOpen(session2.getSid())); Assert.assertFalse(sm.isOpen(session1.getSid())); Assert.assertEquals(2, sm.getSessions().size()); }