### Question:
EnglishProficiencyConverter { public String convert(EnglishProficiency ep) { if (ep == null) { return null; } EnglishProficiencyCode code = EnglishProficiencyCode.wrap(ep.getCode()); return ENGLISH_PROFICIENCY_MAP.get(code); }  String convert(EnglishProficiency ep);  }### Answer:
@Test public void testNullObject() { String result = converter.convert(null); Assert.assertNull("English Proficiency should be null", result); }
@Test public void testNativeEnglish() { EnglishProficiency ep = new EnglishProficiency(); ep.setCode(EnglishProficiencyCode.NATIVE_ENGLISH); String result = converter.convert(ep); Assert.assertEquals("NotLimited", result); }
@Test public void testFluentEnglish() { EnglishProficiency ep = new EnglishProficiency(); ep.setCode(EnglishProficiencyCode.FLUENT_ENGLISH); String result = converter.convert(ep); Assert.assertEquals("NotLimited", result); }
@Test public void testNonEnglishSpeaking() { EnglishProficiency ep = new EnglishProficiency(); ep.setCode(EnglishProficiencyCode.NON_ENGLISH_SPEAKING); String result = converter.convert(ep); Assert.assertEquals("Limited", result); }
@Test public void testRedesignatedAsFluent() { EnglishProficiency ep = new EnglishProficiency(); ep.setCode(EnglishProficiencyCode.REDESIGNATED_AS_FLUENT); String result = converter.convert(ep); Assert.assertEquals("NotLimited", result); }
@Test public void testLimitedEnglish() { EnglishProficiency ep = new EnglishProficiency(); ep.setCode(EnglishProficiencyCode.LIMITED_ENGLISH); String result = converter.convert(ep); Assert.assertEquals("Limited", result); }
@Test public void testUnknown() { EnglishProficiency ep = new EnglishProficiency(); ep.setCode(EnglishProficiencyCode.STATUS_UNKNOWN); String result = converter.convert(ep); Assert.assertNull(result); }