AllelePosition { public static boolean isSnv(String ref, String alt) { return ref.length() == 1 && alt.length() == 1; } 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 testIsSnv() { assertThat(isSnv("A", "T"), is(true)); assertThat(isSnv("AA", "GT"), is(false)); assertThat(isSnv("ATT", "A"), is(false)); assertThat(isSnv("T", "TTA"), is(false)); }