ReplaceModeConverter implements Converter { @Override public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) { return ReplaceMode.valueOf(value); }  @Override Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value); @Override String getAsString(FacesContext facesContext, UIComponent uiComponent, Object obj);  }
@Test public void testGetAsObject_1() throws Exception { ReplaceModeConverter fixture = new ReplaceModeConverter(); Object result = fixture.getAsObject(null, null, ReplaceMode.KEY.name()); assertNotNull(result); }