JsonXMLBinder { public boolean isBindable(Class<?> type) { return type.isAnnotationPresent(XmlRootElement.class) || type.isAnnotationPresent(XmlType.class); } JsonXMLBinder(); protected  JsonXMLBinder(boolean writeDocumentArray); protected  JsonXMLBinder(JsonXMLRootProvider rootProvider, boolean writeDocumentArray); boolean isBindable(Class<?> type); T readObject(Class<? extends T> type, JsonXML config, JAXBContext context, Reader stream); void writeObject(Class<?> type, JsonXML config, JAXBContext context, Writer stream, Object value); List<T> readArray(Class<? extends T> type, JsonXML config, JAXBContext context, Reader stream); void writeArray(Class<?> type, JsonXML config, JAXBContext context, Writer stream, Collection<?> collection);  }
@Test public void testIsBindable() { Assert.assertTrue(new JsonXMLBinder().isBindable(SampleRootElement.class)); Assert.assertTrue(new JsonXMLBinder().isBindable(SampleType.class)); Assert.assertFalse(new JsonXMLBinder().isBindable(getClass())); }