@Test
public void testCreateElement() throws JAXBException {

	JsonXMLRootProvider provider = new JsonXMLRootProvider();
	JAXBElement<?> sampleRootElement = provider.createElement(SampleRootElement.class, new SampleRootElement());
	Assert.assertEquals(new QName("sampleRootElement"), sampleRootElement.getName());
	Assert.assertEquals(SampleRootElement.class, sampleRootElement.getDeclaredType());
	JAXBElement<?> sampleType = provider.createElement(SampleType.class, new SampleType());
	Assert.assertEquals(new QName("sampleType"), sampleType.getName());
	Assert.assertEquals(SampleType.class, sampleType.getDeclaredType());
	JAXBElement<?> sampleTypeWithNamespace = provider.createElement(SampleTypeWithNamespace.class, new SampleTypeWithNamespace());
	Assert.assertEquals(new QName("urn:staxon:jaxb:test", "sampleTypeWithNamespace"), sampleTypeWithNamespace.getName());
	Assert.assertEquals(SampleTypeWithNamespace.class, sampleTypeWithNamespace.getDeclaredType());
	Assert.assertNull(provider.createElement(EmptyType.class, new EmptyType()));
}