@Test public void shouldConvertStringToObject() throws Exception { Set<ConvertiblePair> types = converter.getConvertibleTypes(); assertEquals(1, types.size()); ConvertiblePair pair = types.iterator().next(); assertEquals(String.class, pair.getSourceType()); assertEquals(Object.class, pair.getTargetType()); }
@Test public void getConvertibleTypes() { final Set<ConvertiblePair> convertibleTypes = converter.getConvertibleTypes(); Assert.assertEquals(1, convertibleTypes.size()); final ConvertiblePair convertiblePair = convertibleTypes.iterator().next(); Assert.assertSame(Object.class, convertiblePair.getSourceType()); Assert.assertSame(Object.class, convertiblePair.getTargetType()); }