super.setUp();
}
public void testMap() throws Exception {
SimpleTypeMapperImpl extension = new SimpleTypeMapperImpl();
TransformationContext context = EasyMock.createMock(TransformationContext.class);
Map<String, Object> metaData = new HashMap<String, Object>();
EasyMock.expect(context.getMetadata()).andReturn(metaData).anyTimes();
EasyMock.replay(context);
NamespaceContext namespaceContext = EasyMock.createMock(NamespaceContext.class);
EasyMock.expect(namespaceContext.getNamespaceURI(EasyMock.eq("f"))).andReturn("http://foo").anyTimes();
EasyMock.expect(namespaceContext.getPrefix(EasyMock.eq("http://foo"))).andReturn("f").anyTimes();
EasyMock.replay(namespaceContext);
context.getMetadata().put(NamespaceContext.class.getName(), namespaceContext);
for (TypeInfo simpleType : SimpleTypeMapperImpl.XSD_SIMPLE_TYPES.values()) {
String name = simpleType.getQName().getLocalPart();
Object value = SAMPLE_VALUES.get(name);
if (value instanceof String[]) {
for (String s : (String[])value) {