DateConverter implements Converter { @Override public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object obj) { FastDateFormat fmt = DF; if (preferencesBean != null) { fmt = preferencesBean.getDateTimeFormat(); } return fmt.format(obj); }  @Override Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value); @Override String getAsString(FacesContext facesContext, UIComponent uiComponent, Object obj);  }
@Test public void testGetAsString_1() throws Exception { DateConverter fixture = new DateConverter(); Object obj = new Date(); String result = fixture.getAsString(null, null, obj); assertNotNull(result); }