### Question:
SwitchyardJavaGenerator extends org.savara.java.generator.JavaServiceGenerator { @Override public void createServiceInterfaceFromWSDL(String wsdlPath, String wsdlLocation, String srcFolder) throws Exception { super.createServiceInterfaceFromWSDL(wsdlPath, wsdlLocation, srcFolder); removeWebServiceAndClientAnnotations(wsdlPath, srcFolder); } SwitchyardJavaGenerator(); static void main(String[] args); @Override void createServiceInterfaceFromWSDL(String wsdlPath, String wsdlLocation, String srcFolder); @Override void createServiceImplementationFromWSDL(Role role, java.util.List<Role> refRoles,
							ProtocolModel behaviour, String wsdlPath, String wsdlLocation,
						java.util.List<String> refWsdlPaths, String srcFolder,
						ResourceLocator locator); void createServiceComposite(Role role, java.util.List<Role> refRoles,
				String wsdlPath, java.util.List<String> refWsdlPaths,
				String resourceFolder, String srcFolder);  }### Answer:
@Test public void testGenerateStoreServiceInterfaceFromWSDL() { SwitchyardJavaGenerator gen=new SwitchyardJavaGenerator(); try { java.net.URL url=ClassLoader.getSystemClassLoader().getResource(STORE_WSDL_LOCATION); gen.createServiceInterfaceFromWSDL(url.getFile(), STORE_WSDL_LOCATION, SRC_PATH); compare("expected/Store.java.txt", SRC_PATH+"/org/savara/examples/store/Store.java"); } catch(Exception e) { e.printStackTrace(); fail("Failed to generate interface: "+e); } }
@Test public void testGenerateAllServiceInterfaceFromWSDL() { SwitchyardJavaGenerator gen=new SwitchyardJavaGenerator(); try { java.net.URL url=ClassLoader.getSystemClassLoader().getResource(STORE_WSDL_LOCATION); gen.createServiceInterfaceFromWSDL(url.getFile(), STORE_WSDL_LOCATION, SRC_PATH); url=ClassLoader.getSystemClassLoader().getResource(CREDITAGENCY_WSDL_LOCATION); gen.createServiceInterfaceFromWSDL(url.getFile(), CREDITAGENCY_WSDL_LOCATION, SRC_PATH); url=ClassLoader.getSystemClassLoader().getResource(LOGISTICS_WSDL_LOCATION); gen.createServiceInterfaceFromWSDL(url.getFile(), LOGISTICS_WSDL_LOCATION, SRC_PATH); compare("expected/Store.java.txt", SRC_PATH+"/org/savara/examples/store/Store.java"); compare("expected/CreditAgency.java.txt", SRC_PATH+"/org/savara/examples/creditagency/CreditAgency.java"); compare("expected/Logistics.java.txt", SRC_PATH+"/org/savara/examples/logistics/Logistics.java"); } catch(Exception e) { e.printStackTrace(); fail("Failed to generate interface: "+e); } }