### Question:
FacetCcCourtAreaValueConverter implements FacetValueConverter { @Override public boolean handles(XSettings xsettings) { Preconditions.checkNotNull(xsettings); return xsettings.getField() == XField.CC_APPEAL || xsettings.getField() == XField.CC_REGION || xsettings.getField() == XField.CC_DISTRICT; }  @Override Object convert(String value, XSettings xsettings); @Override boolean handles(XSettings xsettings); @Autowired void setCcCourtAreaFieldValueConverter(CcCourtAreaFieldValueConverter ccCourtAreaFieldValueConverter);  }### Answer:
@Test(expected = NullPointerException.class) public void handles_Null() { converter.handles(null); }
@Test public void handles_FALSE() { XSettings xsettings = new XSettings(); xsettings.setField(XField.JUDGMENT_DATE); assertFalse(converter.handles(xsettings)); }
@Test public void handles_TRUE_APPEAL() { XSettings xsettings = new XSettings(); xsettings.setField(XField.CC_APPEAL); assertTrue(converter.handles(xsettings)); }
@Test public void handles_TRUE_REGION() { XSettings xsettings = new XSettings(); xsettings.setField(XField.CC_REGION); assertTrue(converter.handles(xsettings)); }
@Test public void handles_TRUE_DISTRICT() { XSettings xsettings = new XSettings(); xsettings.setField(XField.CC_DISTRICT); assertTrue(converter.handles(xsettings)); }