ConferenceSessionLoader { public List<ConferenceSession> load() { try { return CACHE.get("KEY"); } catch (ExecutionException e) { throw new RuntimeException(e); } } ConferenceSessionLoader(WorkshopConfiguration conf); boolean isRemoteServiceAvailable(); List<ConferenceSession> load();  }
@Test public void testGetContent() { setupMock(); List<ConferenceSession> sessions = new ConferenceSessionLoader(getConfiguration()).load(); assertTrue(sessions.size() > 0); for(ConferenceSession session : sessions) { assertNotNull(session.getTitle()); assertNotNull(session.getAbstract()); assertNotNull(session.getPresenter()); assertNotNull(session.getPresenter().getName()); if (session.getTags() != null) { assertTrue(session.getTags().size() > 0); } } }