@Test
public void testCodeGenInterfaces() {
try {
JAXRSContainer container = new JAXRSContainer(null);
ToolContext context = new ToolContext();
context.put(WadlToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
context.put(WadlToolConstants.CFG_WADLURL, getLocation("/wadl/bookstore.xml"));
context.put(WadlToolConstants.CFG_MEDIA_TYPE_MAP,
"application/xml=javax.xml.transform.Source");
context.put(WadlToolConstants.CFG_MEDIA_TYPE_MAP,
"multipart/form-data=org.apache.cxf.jaxrs.ext.multipart.MultipartBody");
context.put(WadlToolConstants.CFG_NO_VOID_FOR_EMPTY_RESPONSES, "true");
context.put(WadlToolConstants.CFG_GENERATE_RESPONSE_IF_HEADERS_SET, "true");
context.put(WadlToolConstants.CFG_GENERATE_RESPONSE_FOR_METHODS, "getName");
context.put(WadlToolConstants.CFG_COMPILE, "true");
container.setContext(context);
container.execute();
assertNotNull(output.list());