public void testMultipleCreators() throws Exception {
  ObjectMapper m=new ObjectMapper();
  MultiBean bean=m.readValue("123",MultiBean.class);
  assertEquals(Integer.valueOf(123),bean.value);
  bean=m.readValue(quote("abc"),MultiBean.class);
  assertEquals("abc",bean.value);
  bean=m.readValue("0.25",MultiBean.class);
  assertEquals(Double.valueOf(0.25),bean.value);
}

public void testMultipleCreators ( ) throws Exception { ObjectMapper m = new ObjectMapper ( ) ; MultiBean bean = m . readValue ( "123" , MultiBean . class ) ; assertEquals ( Integer . valueOf ( 123 ) , bean . value ) ; bean = m . readValue ( quote ( "abc" ) , MultiBean . class ) ; assertEquals ( "abc" , bean . value ) ; bean = m . readValue ( "0.25" , MultiBean . class ) ; assertEquals ( Double . valueOf ( 0.25 ) , bean . value ) ; }
test to verify that multiple creators may co - exist , iff they use different json type as input
