UnionConverter implements Converter { @Override public boolean canHandle(final Class clazz) { return Union.class.equals(clazz); }  @Override boolean canHandle(final Class clazz); @Override DataType convertedType(); @Override Double convert(final Object object);  }
@Test public void testCanHandleUnion() { assertTrue(UNION_CONVERTER.canHandle(Union.class)); assertFalse(UNION_CONVERTER.canHandle(String.class)); }