}
public void testProbe() {
PropertyAcceptorNucleotideSequence tss5 = ProbeMakerSequenceFactory.createTSS(seq,target.getID());
ProbeMakerPropertyUtils.addMessage(tss5, new Message("Test",new MessageType("test_type","Test type"),Message.ERROR)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
TSSPair pair = new TSSPair(tss5,null,target);
ProbeMakerPropertyUtils.addMessage(pair, new Message("Test",new MessageType("test_type","Test type"),Message.ERROR)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
Probe probe = new DefaultProbe(pair,0,0,NucleotideSequence.DNA);
ProbeMakerPropertyUtils.setRank(probe, ProbeMakerConstants.BAD_QUALITY);
assertTrue("Incorrect rank", ProbeMakerConstants.BAD_QUALITY == ProbeMakerPropertyUtils.getRank(probe)); //$NON-NLS-1$
assertTrue("Incorrect target ID", target.getID().equals(DesignUtils.getTargetID(probe))); //$NON-NLS-1$
assertTrue("Incorrect target", target.equals(pair.getTarget())); //$NON-NLS-1$
assertTrue("Incorrect target", target.equals(probe.getTarget())); //$NON-NLS-1$
assertTrue("Incorrect message count", 2 == ProbeMakerPropertyUtils.getAllMessages(probe).size()); //$NON-NLS-1$
assertTrue("Wrong tss pair",pair == probe.getTSSPair()); //$NON-NLS-1$
ProbeMakerPropertyUtils.addMessage(probe, new Message("Test",new MessageType("test_type","Test type"),Message.ERROR)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
assertTrue("Incorrect message count", 3 == ProbeMakerPropertyUtils.getAllMessages(probe).size()); //$NON-NLS-1$
}