@Test
    public void test_maxGold() {

        Pawn p0 = mock(Pawn.class);
        Pawn p1 = mock(Pawn.class);

        board.removeAllPawns();
        assertEquals(board.numberOfPawns(), 0);

        board.addPawn(p0);
        assertEquals(board.numberOfPawns(), 1);


        when(p0.getX()).thenReturn(1);
        when(p0.getY()).thenReturn(1);
        board.addPawn(p1);
        when(p1.getX()).thenReturn(2);
        when(p1.getY()).thenReturn(1);

        assertEquals(board.numberOfPawns(), 2);

        when(p0.getGold()).thenReturn(1);
        when(p1.getGold()).thenReturn(3);

        board.maxGold();

        assertEquals(board.maxGold(), 3);

        InOrder mocksWithOrder = inOrder(p0, p1);
        mocksWithOrder.verify(p0).getGold();
        mocksWithOrder.verify(p1).getGold();

    }