@Test
    public void testEquals() {
        try {
            System.out.println("equals");
            Port port = new Port();
            Ship instance = new Ship(port, "Test", 12, 23);
            Ship newInstance = new Ship(port, "Test", 12, 23);
            boolean expResult = true;
            boolean result = instance.equals(newInstance);
            assertEquals(expResult, result);
        } catch (ShipException ex) {
            Logger.getLogger(ShipTest.class.getName()).log(Level.SEVERE, null, ex);
        }
    }