### Question:
VariantNormalizer { public VariantDescription normalizeVariant(VariantDescription desc) { final VariantDescription shifted = shiftLeft(desc); return trimBasesLeft(shifted, 0); } VariantNormalizer(String fastaPath); VariantDescription normalizeVariant(VariantDescription desc); VariantDescription normalizeInsertion(VariantDescription desc);  }### Answer:
@Test public void testSNV() { VariantDescription descIn = new VariantDescription("braf", 19, "G", "C"); VariantDescription descOut = normalizer.normalizeVariant(descIn); Assert.assertEquals("braf", descOut.getChrom()); Assert.assertEquals(19, descOut.getPos()); Assert.assertEquals("G", descOut.getRef()); Assert.assertEquals("C", descOut.getAlt()); }
@Test public void testOnNormalInsertion() { VariantDescription descIn = new VariantDescription("braf", 19, "G", "GCT"); VariantDescription descOut = normalizer.normalizeVariant(descIn); Assert.assertEquals("braf", descOut.getChrom()); Assert.assertEquals(19, descOut.getPos()); Assert.assertEquals("", descOut.getRef()); Assert.assertEquals("CT", descOut.getAlt()); }
@Test public void testShiftDeletionLeft() { VariantDescription descIn = new VariantDescription("braf", 180, "TGT", "T"); VariantDescription descOut = normalizer.normalizeVariant(descIn); Assert.assertEquals("braf", descOut.getChrom()); Assert.assertEquals(175, descOut.getPos()); Assert.assertEquals("TG", descOut.getRef()); Assert.assertEquals("", descOut.getAlt()); }
@Test public void testShiftInsertionLeft() { VariantDescription descIn = new VariantDescription("braf", 180, "T", "TGT"); VariantDescription descOut = normalizer.normalizeVariant(descIn); Assert.assertEquals("braf", descOut.getChrom()); Assert.assertEquals(175, descOut.getPos()); Assert.assertEquals("", descOut.getRef()); Assert.assertEquals("TG", descOut.getAlt()); }