### Question:
VariantHbaseUtil { public static VariantType inferType (Variant var) { return inferType(var.getReference(), var.getAlternate()); }  static Variant inferAndSetType(Variant var); static VariantType inferType(Variant var); static boolean isInsertion(Variant var); static boolean isInsertion(String ref, String alt, VariantType type); static VariantType inferType(String ref, String alt);  }### Answer:
@Test public void inferType() throws Exception { assertEquals(VariantType.NO_VARIATION, VariantHbaseUtil.inferType("", "")); assertEquals(VariantType.NO_VARIATION, VariantHbaseUtil.inferType(".", ".")); assertEquals(VariantType.NO_VARIATION, VariantHbaseUtil.inferType(".", "")); assertEquals(VariantType.NO_VARIATION, VariantHbaseUtil.inferType("", ".")); assertEquals(VariantType.SNV, VariantHbaseUtil.inferType("A", "T")); assertEquals(VariantType.MNV, VariantHbaseUtil.inferType("AGG", "TCC")); assertEquals(VariantType.INSERTION, VariantHbaseUtil.inferType("", "T")); assertEquals(VariantType.INSERTION, VariantHbaseUtil.inferType(".", "T")); assertEquals(VariantType.DELETION, VariantHbaseUtil.inferType("A", "")); assertEquals(VariantType.DELETION, VariantHbaseUtil.inferType("A", ".")); assertEquals(VariantType.MIXED, VariantHbaseUtil.inferType("AG", "T")); assertEquals(VariantType.MIXED, VariantHbaseUtil.inferType("A", "TC")); }
@Test(expected = UnsupportedOperationException.class) public void inferUnknownTypeRef() throws Exception { VariantHbaseUtil.inferType("<ABC>","T"); }
@Test(expected = UnsupportedOperationException.class) public void inferUnknownTypeRefDot() throws Exception { VariantHbaseUtil.inferType(".A","T"); }
@Test(expected = UnsupportedOperationException.class) public void inferUnknownTypeRefsquare() throws Exception { VariantHbaseUtil.inferType("[A","T"); }
@Test(expected = UnsupportedOperationException.class) public void inferUnknownTypeAlt() throws Exception { VariantHbaseUtil.inferType("T","[T"); }
@Test(expected = UnsupportedOperationException.class) public void inferUnknownTypeAltDot() throws Exception { VariantHbaseUtil.inferType("T",".T"); }
@Test(expected = UnsupportedOperationException.class) public void inferUnknownTypeAltSquare() throws Exception { VariantHbaseUtil.inferType("T","<T>"); }