Given the following test:
public void testWithScalar118() throws Exception
    {
        ObjectMapper mapper = new ObjectMapper();
        String json;

        ExternalTypeWithNonPOJO input = new ExternalTypeWithNonPOJO(new NAME_1.util.Date(123L));
        json = mapper.writeValueAsString(input);
        System.out.println("JSON with Date: "+json);
        assertNotNull(json);

        // and back just to be sure:
        ExternalTypeWithNonPOJO result = mapper.readValue(json, ExternalTypeWithNonPOJO.class);
        assertNotNull(result.value);
        assertTrue(result.value instanceof NAME_1.util.Date);
    }

Generate just the assertions (ready to be placed in the NAME_1 class) for this one:
public void testWithNaturalScalar118() throws Exception
    {
        ExternalTypeWithNonPOJO input = new ExternalTypeWithNonPOJO(Integer.valueOf(13));
        String json = MAPPER.writeValueAsString(input);
        // and back just to be sure:
        ExternalTypeWithNonPOJO result = MAPPER.readValue(json, ExternalTypeWithNonPOJO.class);
 } Wrap the entire output in JSON format.
user