### Question:
EnrichmentTagItemConverter { public UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem) { Preconditions.checkNotNull(enrichmentTagItem); UploadEnrichmentTag enrichmentTagTemp = new UploadEnrichmentTag(); enrichmentTagTemp.setJudgmentId(enrichmentTagItem.getJudgmentId()); enrichmentTagTemp.setTagType(enrichmentTagItem.getTagType()); enrichmentTagTemp.setValue(enrichmentTagItem.getValue()); return enrichmentTagTemp; }  UploadEnrichmentTag convertEnrichmentTagItem(EnrichmentTagItem enrichmentTagItem);  }### Answer:
@Test(expected=NullPointerException.class) public void convert_null() { converter.convertEnrichmentTagItem(null); }
@Test public void convert() { EnrichmentTagItem tagItem = new EnrichmentTagItem(); tagItem.setJudgmentId(123); tagItem.setTagType("A TYPE"); tagItem.setValue("A VALUE"); UploadEnrichmentTag enrichmentTagTemp = converter.convertEnrichmentTagItem(tagItem); assertEquals(tagItem.getJudgmentId(), enrichmentTagTemp.getJudgmentId()); assertEquals(tagItem.getTagType(), enrichmentTagTemp.getTagType()); assertEquals(tagItem.getValue(), enrichmentTagTemp.getValue()); }