source: class DatastoreManagerTest {
  
    @Mock
    private Store store;
    @Mock
    private Session session;
    @Mock
    private Context context;
    private DatastoreManager manager;
  
    @Test
    public void testFindSession() throws IOException, ClassNotFoundException {
  
target:     when(store.load(anyString())).thenReturn(session);
  
      Session loaded = manager.findSession("123");
      assertEquals(session, loaded);
      verify(store).load("123");
    }
  
  }