SimpleGapPenalty implements GapPenalty { @Override public Type getType() { return type; } SimpleGapPenalty();  SimpleGapPenalty(short gop, short gep); static void setDefaultExtensionPenalty(short gep); static void setDefaultOpenPenalty(short gop); @Override short getExtensionPenalty(); @Override short getOpenPenalty(); @Override Type getType(); @Override void setExtensionPenalty(short gep); @Override void setOpenPenalty(short gop);  }
@Test public void testType() { assertEquals(new SimpleGapPenalty((short) 7, (short) 0).getType(), GapPenalty.Type.CONSTANT); assertEquals(new SimpleGapPenalty((short) 0, (short) 5).getType(), GapPenalty.Type.LINEAR); assertEquals(new SimpleGapPenalty((short) 8, (short) 3).getType(), GapPenalty.Type.AFFINE); }