@Test
public void testCreateQBeanThrowsNullPointerException() throws Throwable {
Element e = new Element("testQFactoryName", "testQFactoryPrefix", "testQFactoryUri");
try {
new QFactory(new ObjectName(""), null).createQBean(null, e, new Join());
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
assertEquals("e.getName()", "testQFactoryName", e.getName());
}