AlleleConverter { public static ClinVar toProtoClinVar(ClinVarData clinVarData) { ClinVar.Builder builder = ClinVar.newBuilder(); builder.setAlleleId(clinVarData.getAlleleId()); builder.setPrimaryInterpretation(toProtoClinSig(clinVarData.getPrimaryInterpretation())); for (ClinVarData.ClinSig clinSig : clinVarData.getSecondaryInterpretations()) { builder.addSecondaryInterpretations(toProtoClinSig(clinSig)); } builder.setReviewStatus(clinVarData.getReviewStatus()); for (Map.Entry<String, ClinVarData.ClinSig> entry : clinVarData.getIncludedAlleles().entrySet()) { builder.putIncludedAlleles(entry.getKey(), toProtoClinSig(entry.getValue())); } return builder.build(); } private  AlleleConverter(); static AlleleKey toAlleleKey(Allele allele); static AlleleProperties mergeProperties(AlleleProperties originalProperties, AlleleProperties properties); static AlleleProperties toAlleleProperties(Allele allele); static ClinVar toProtoClinVar(ClinVarData clinVarData);  }
@Test public void convertClinVar() { assertThat(AlleleConverter.toProtoClinVar(CLINVAR_DATA), equalTo(PROTO_CLINVAR)); }