SimpleProfilePair extends SimpleProfile<S, C> implements ProfilePair<S, C> { @Override public Profile<S, C> getQuery() { return query; } SimpleProfilePair(Profile<S, C> query, Profile<S, C> target, List<Step> sx, List<Step> sy); @Override Profile<S, C> getQuery(); @Override Profile<S, C> getTarget();  }
@Test public void testGetQuery() { ProfilePair<ProteinSequence, AminoAcidCompound> all = new SimpleProfilePair<ProteinSequence, AminoAcidCompound>(pair1, pair2, Arrays.asList(new Step[] { Step.COMPOUND, Step.COMPOUND, Step.COMPOUND, Step.COMPOUND, Step.GAP, Step.GAP}), Arrays.asList( new Step[] {Step.COMPOUND, Step.GAP, Step.COMPOUND, Step.COMPOUND, Step.COMPOUND, Step.COMPOUND})); assertEquals(all.getQuery(), pair1); }