String testURI = "http://celtix.objectweb.org/configuration/test/types";
element.getNamespaceURI();
EasyMock.expectLastCall().andReturn(testURI);
element.getLocalName();
EasyMock.expectLastCall().andReturn(typename);
TypeSchema ts = org.easymock.classextension.EasyMock.createMock(TypeSchema.class);
TypeSchemaHelper tsh = new TypeSchemaHelper(true);
tsh.put(testURI, ts);
ts.unmarshal(new QName(testURI, typename), element);
EasyMock.expectLastCall().andReturn(value);
EasyMock.replay(element);
org.easymock.classextension.EasyMock.replay(ts);
pe.setValue(element);
Object o = pe.getValue();
assertTrue(o == value);
EasyMock.reset(element);
org.easymock.classextension.EasyMock.reset(ts);
element.getNamespaceURI();
EasyMock.expectLastCall().andReturn(testURI);
element.getLocalName();
EasyMock.expectLastCall().andReturn(typename);
ts.unmarshal(new QName(testURI, typename), element);
EasyMock.expectLastCall().andThrow(new JAXBException("test"));
EasyMock.replay(element);
org.easymock.classextension.EasyMock.replay(ts);
try {
pe.getValue();