SnpEffHgvsFormatter { @NotNull @VisibleForTesting static String formattedHgvsCoding(@NotNull SnpEffAnnotation annotation) { String hgvsCoding = annotation.hgvsCoding(); if (hgvsCoding.startsWith(HGVS_CODING_PREFIX_TO_REMOVE)) { return hgvsCoding.substring(HGVS_CODING_PREFIX_TO_REMOVE.length()); } else { return hgvsCoding; } } private  SnpEffHgvsFormatter();   }
@Test public void canConvertHgvsCoding() { SnpEffAnnotation withCodingAnnotation = SnpEffAnnotationTestFactory.builder().hgvsCoding("c.224C>G").build(); assertEquals("224C>G", SnpEffHgvsFormatter.formattedHgvsCoding(withCodingAnnotation)); SnpEffAnnotation withoutCodingAnnotation = SnpEffAnnotationTestFactory.builder().hgvsCoding("hello").build(); assertEquals("hello", SnpEffHgvsFormatter.formattedHgvsCoding(withoutCodingAnnotation)); }