}
public void testCreate() {
DataType execType = new DataTypeImpl<XMLType>(InvalidSymbolFault_Exception.class, XMLType.UNKNOWN);
DataType<?> faultType = handler.getFaultType(execType);
InvalidSymbolFault fault = StockFactory.INSTANCE.createInvalidSymbolFault();
fault.setMessage("ABC");
fault.setSymbol("IBM0");
DataType<DataType> exType = new DataTypeImpl<DataType>(InvalidSymbolFault_Exception.class, faultType);
Exception ex = handler.createException(exType, "Invalid symbol", fault, null);
assertTrue(ex instanceof InvalidSymbolFault_Exception);
InvalidSymbolFault_Exception exception = (InvalidSymbolFault_Exception)ex;
assertEquals("Invalid symbol", exception.getMessage());