ships.add(ship7);
ArrayShip arrayShip = new ArrayShip();
arrayShip.setShips(ships);
Client c = Client.create();
WebResource r = c.resource("http://localhost:8080/BattleShip/rest/game/addship/2201");
r.type(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON).post(ClientResponse.class, arrayShip);