### Question:
VariantBuilder { public Variant build() { return build(null); } VariantBuilder();  VariantBuilder(String variantString);  VariantBuilder(String chromosome, Integer start, Integer end, String reference, String alternate); VariantBuilder setId(String id); @Deprecated VariantBuilder setIds(List<String> ids); VariantBuilder setNames(List<String> names); VariantBuilder setChromosome(String chromosome); VariantBuilder setStart(Integer start); VariantBuilder setEnd(Integer end); VariantBuilder setLength(Integer length); VariantBuilder setReference(String reference); VariantBuilder setAlternate(String alternate); VariantBuilder setAlternates(List<String> alternates); VariantBuilder addAlternate(String alternate); VariantBuilder setType(VariantType type); VariantBuilder setCiStart(int left, int right); VariantBuilder setCiEnd(int left, int right); VariantBuilder setCopyNumber(int copyNumber); VariantBuilder setSvInsSeq(String left, String right); VariantBuilder setStrand(String strand); VariantBuilder setFilter(String filter); VariantBuilder setQuality(String quality); VariantBuilder setQuality(Double quality); VariantBuilder setStudyId(String studyId); boolean hasStudyId(); VariantBuilder setFileId(String fileId); boolean hasFileId(); VariantBuilder setFileData(Map<String, String> fileData); VariantBuilder addFileData(String key, List<?> values); VariantBuilder addFileData(String key, Number value); VariantBuilder addFileData(String key, String value); VariantBuilder setCall(OriginalCall call); VariantBuilder setSampleDataKeys(String... sampleDataKeys); VariantBuilder setSampleDataKeys(List<String> sampleDataKeys); VariantBuilder setSamplesPosition(LinkedHashMap<String, Integer> samplesPosition); VariantBuilder setSampleNames(List<String> samples); VariantBuilder setSamples(List<SampleEntry> samples); VariantBuilder addSample(String sampleName, String... data); VariantBuilder addSample(String sampleName, List<String> data); void addSample(Integer idx, List<String> data); Variant build(); Variant build(Variant reuse); Variant buildAvroVariant(Variant reuse); VariantProto.Variant buildProtoVariant(); VariantProto.Variant buildProtoVariant(VariantProto.VariantOrBuilder reuse); static VariantType inferType(String reference, String alternate); static int inferLength(String reference, String alternate, int start, int end, VariantType type); static Variant getMateBreakend(Variant variant); static Breakend parseBreakend(String reference, String alternate); static boolean isMateBreakend(String alternate); static boolean isSV(VariantType type); static boolean hasIncompleteReference(String alternate, VariantType type); static boolean hasIncompleteReference(VariantType type); void inferSV(); static Integer getCopyNumberFromAlternate(String alternate); Integer getCopyNumberFromSampleData(); static StructuralVariantType getCNVSubtype(Integer copyNumber); static VariantProto.VariantType getProtoVariantType(VariantType type); @Deprecated static StructuralVariation getStructuralVariation(Variant variant, StructuralVariantType tandemDuplication); @Deprecated static int[] getImpreciseStart(Variant variant); @Deprecated static int[] getImpreciseEnd(Variant variant); @Override String toString(); static final String CNV_ALT; static final String DUP_ALT; static final String DUP_TANDEM_ALT; static final String DEL_ALT; static final String INV_ALT; static final String INS_ALT; static final String NON_REF_ALT; static final String REF_ONLY_ALT; }### Answer:
@Test(expected = IllegalArgumentException.class) public void buildIncompleteSV() throws Exception { new VariantBuilder("1:1000:<DEL>").build(); }
@Test(expected = IllegalArgumentException.class) public void buildIncompleteSV_2() throws Exception { new VariantBuilder("1:1000:A:<DEL>").build(); }