DefaultExperimentService implements ExperimentService { @Override public Experiment get(long experimentId) throws IOException { return experimentStore.get(experimentId); }  @Override Experiment get(long experimentId); @Override List<Experiment> list(); @Override Collection<Experiment> listAllBySearch(String query); @Override Collection<Experiment> listAllByStudyId(long studyId); @Override Collection<Experiment> listAllWithLimit(long limit); @Override long create(Experiment experiment); @Override long update(Experiment experiment); void loadRunPartitions(Experiment experiment); void setNamingSchemeHolder(NamingSchemeHolder namingSchemeHolder); void setAuthorizationManager(AuthorizationManager authorizationManager); void setExperimentStore(ExperimentStore experimentStore); void setKitService(KitService kitService); void setInstrumentModelService(InstrumentModelService instrumentModelService); void setStudyService(StudyService studyService); void setLibraryService(LibraryService libraryService); @Override Collection<Experiment> listAllByLibraryId(long id); @Override List<Experiment> listAllByRunId(long runId); @Override DeletionStore getDeletionStore(); @Override AuthorizationManager getAuthorizationManager(); @Override void authorizeDeletion(Experiment object); @Override uk.ac.bbsrc.tgac.miso.core.service.exception.ValidationResult validateDeletion(Experiment object);  }
@Test public void testGetExperimentById() throws IOException { long inputId = 1L; when(experimentStore.get(inputId)).thenReturn(experiment); assertEquals(experiment, sut.get(inputId)); verify(experimentStore).get(inputId); }