public void testFormalAndActualTypeInDifferentPackages(){
TestLogger.logger.debug("------------------------------");
TestLogger.logger.debug("Test : " + getName());
PolymorphicShapeService service = new PolymorphicShapeService();
PolymorphicShapePortType port = service.getPolymorphicShapePort();
BindingProvider p = (BindingProvider) port;
p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
Shape shapeType;
TestLogger.logger.debug("Sending Request to draw Square");
Square shape = new Square();
shape.setXAxis(1);
shape.setYAxis(1);
shape.setLength(10);
shapeType = port.draw(shape);
assertTrue(shapeType instanceof Square);
TestLogger.logger.debug("Square was drawn");
TestLogger.logger.debug("Sending Request to draw 3D Square");
ThreeDSquare threeDshape = new ThreeDSquare();
threeDshape.setXAxis(1);
threeDshape.setYAxis(1);
threeDshape.setLength(10);
threeDshape.setWidth(10);
threeDshape.setBredth(10);
shapeType = port.draw3D(threeDshape);
assertTrue(shapeType instanceof ThreeDSquare);
TestLogger.logger.debug("3D Square was drawn");
TestLogger.logger.debug("-------------------------------");
}