public void test7SimpleRpcEncPortEchoMultipleFaults4() throws Exception {
    SimpleRpcEncPortType binding;
    try {
      binding = new SimpleRpcEncServiceLocator().getSimpleRpcEncPort(url);
    } catch (javax.xml.rpc.ServiceException jre) {
      if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace();
      throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
    }
    assertTrue("binding is null", binding != null);

    ////////////////////////////////////////////////////////////////////////
    // echoMultipleFaults4
    int intParam = 66;
    Enum enumParam = new Enum(1);
    for (int i = 1; i < 3; i++) {
      try {
        binding.echoMultipleFaults4(i, intParam, enumParam);
      } catch (IntFault e1) {
        assertEquals("Wrong fault thrown: " + e1.getClass(), 1, i);
        assertEquals(intParam, e1.getPart3());
        continue;
      } catch (EnumFault e2) {
        assertEquals("Wrong fault thrown: " + e2.getClass(), 2, i);
        assertEquals(enumParam.getValue(), e2.getPart9().getValue());
        continue;
      }
      fail("Did NOT catch any exception");
    }
  }