DataFileConverter implements Converter { @Override public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object obj) { return Integer.toString(((DataFile) obj).getId()); }  @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 { DataFileConverter fixture = new DataFileConverter(); Object obj = new DataFile(); String result = fixture.getAsString(null, null, obj); assertNotNull(result); }