BaselineTranscriptProfileStreamFactory extends
        ProfileStreamFactory<
                AssayGroup,
                BaselineExpressionPerBiologicalReplicate,
                BaselineExperiment,
                BaselineRequestContext<ExpressionUnit.Absolute.Rna>,
                BaselineExpressionPerReplicateProfile> { @Override public ObjectInputStream<BaselineExpressionPerReplicateProfile> create(BaselineExperiment experiment, BaselineRequestContext<ExpressionUnit.Absolute.Rna> options, Collection<String> keepGeneIds) { return profileStreamFactory.create(experiment, options, keepGeneIds); } @Inject  BaselineTranscriptProfileStreamFactory(DataFileHub dataFileHub); @Override ObjectInputStream<BaselineExpressionPerReplicateProfile> create(BaselineExperiment experiment,
                  BaselineRequestContext<ExpressionUnit.Absolute.Rna> options,
                  Collection<String> keepGeneIds);  }
@Test public void whenTheFileIsNotPresentReturnEmptyStream() { assertThat( ImmutableList.copyOf( new IterableObjectInputStream<>( subject.create( EXPERIMENT, new BaselineRequestContext<>( new RnaSeqBaselineRequestPreferences(), EXPERIMENT), Collections.emptySet()))), is(empty())); }