### Question:
VariantContextConverter implements Converter<T, VariantContext> { protected static MutablePair<Integer, Integer> adjustedVariantStart( final int start, final int end, String reference, String alternate, Map<Integer, Character> referenceAlleles, MutablePair<Integer, Integer> adjustedPosition) { int adjustedStart; int adjustedEnd; if (adjustedPosition == null) { adjustedStart = start; adjustedEnd = end; } else { adjustedStart = Math.min(start, adjustedPosition.getLeft()); adjustedEnd = Math.max(end, adjustedPosition.getRight()); } if (StringUtils.isBlank(reference) || StringUtils.isBlank(alternate)) { if (start - 1 < adjustedStart && end + 1 > adjustedEnd) { if (referenceAlleles.containsKey(start - 1) || !referenceAlleles.containsKey(end + 1)) { adjustedStart = start - 1; } else { adjustedEnd = end + 1; } } } adjustedEnd = Math.max(adjustedEnd, adjustedStart); if (adjustedPosition == null) { adjustedPosition = new MutablePair<>(adjustedStart, adjustedEnd); } else { adjustedPosition.setLeft(adjustedStart); adjustedPosition.setRight(adjustedEnd); } return adjustedPosition; } VariantContextConverter(String study, List<String> sampleNames, List<String> sampleFormats, List<String> annotations);  static final DecimalFormat DECIMAL_FORMAT_7; static final DecimalFormat DECIMAL_FORMAT_3; static final String FIELD_SEPARATOR; static final String INFO_SEPARATOR; static final String NO_CALL_ALLELE; }### Answer:
@Test public void adjustedVariantStart() throws Exception { testBuildAllele("1:824337:TGC:TC,TG"); testBuildAllele("1:1000:C:CC"); testBuildAllele("1:1000:CC:C"); testBuildAllele("1:1000:CT:CCT,C"); testBuildAllele("1:1000:CT:C"); testBuildAllele("1:1000:T:TC"); testBuildAllele("1:1000:CT:C,CCT"); testBuildAllele("1:1000:A:AA,AAT"); testBuildAllele("1:1000:A:AAT,AA"); testBuildAllele("1:1000-1100:A:<DEL>"); testBuildAllele("1:1000-1100:A:<CN1>,<CN2>,<CN3>"); testBuildAllele("1:1000-1100:A:<DEL:ME:ALU>"); testBuildAllele("1:1000:A:]3:1234]A"); testBuildAllele("1:1000:A:]3:1234]NNNA"); testBuildAllele("1:1000:A:]3:1234]NNN"); testBuildAllele("1:1000:A:A]3:1234]"); testBuildAllele("1:1000:A:ANNN]3:1234]"); testBuildAllele("1:1000:A:NNN]3:1234]"); testBuildAllele("1:1000:A:ANNN]3:1234],ANNK]3:1234]"); testBuildAllele("1:1000:A:]3:1234]NNNNA,ANNN]3:1234]"); testBuildAllele("1:1000:A:ANNN]3:1234],NNN]3:1234]"); testBuildAllele("1:1000:A:NNN]3:1234],ANNN]3:1234]"); }