@Test
public void testGetSession() {

    try {
        expect(repository.login(null, null)).andReturn(null);
        factory.getSession();
    } catch (RepositoryException e) {
        e.printStackTrace();
    }
}