@Test
    public void testGetAvailableCaptures() {
        System.out.println("getAvailableCaptures");
        Position pos = new Position(3, 2);
        Board board = new Board(8, 12);
        RuleManager instance = new RuleManager();
        Set<Position> expResult = new HashSet<>(4);
        Set<Position> result = instance.getAvailableCaptures(pos, board);
        assertEquals(expResult, result);

        try {
            board.movePiece(new Position(3, 2), new Position(5, 2));
        } catch (IllegalPieceMovementException ex) {
            Logger.getLogger(RuleManagerTest.class.getName()).log(Level.SEVERE, null, ex);
        }

        pos = new Position(6, 1);
        expResult = new HashSet<>(4);
        expResult.add(new Position(4, 3));
        result = instance.getAvailableCaptures(pos, board);
        assertEquals(expResult, result);

        board = new Board(8, 12);
        try {
            board.movePiece(new Position(1, 2), new Position(5, 2));
            board.movePiece(new Position(1, 4), new Position(5, 4));
        } catch (IllegalPieceMovementException ex) {
            Logger.getLogger(RuleManagerTest.class.getName()).log(Level.SEVERE, null, ex);
        }

        pos = new Position(6, 3);
        expResult = new HashSet<>(4);
        expResult.add(new Position(4, 1));
        expResult.add(new Position(4, 5));
        result = instance.getAvailableCaptures(pos, board);
        assertEquals(expResult, result);

    }