AllelePosition { public static boolean isInsertion(String ref, String alt) { return ref.length() < alt.length(); } private  AllelePosition(int pos, String ref, String alt); static AllelePosition of(int pos, String ref, String alt); static AllelePosition trim(int pos, String ref, String alt); static boolean isSnv(String ref, String alt); static boolean isDeletion(String ref, String alt); static boolean isInsertion(String ref, String alt); static boolean isSymbolic(String ref, String alt); int getPos(); String getRef(); String getAlt(); boolean isSymbolic(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testIsInsertion() { assertThat(isInsertion("A", "T"), is(false)); assertThat(isInsertion("AA", "GT"), is(false)); assertThat(isInsertion("ATT", "A"), is(false)); assertThat(isInsertion("T", "TTA"), is(true)); }