@Test
    public void smallBoardWithKingAndQueen() {
        Map<String, Integer> figureQuantityMap = new HashMap<>();
        figureQuantityMap.put(KING.toString(), 1);
        figureQuantityMap.put(QUEEN.toString(), 1);

        int dimension = 2;
        Set<String> boards = prepareBoardsWithKingAndQueen(figureQuantityMap, dimension);
        assertThat("more than 1 figure is present", boards.contains("kx\n" + "xx\n"), is(true));

        assertThat("all elements are not present on each board",
                boards.stream()
                .filter(board -> !board.contains(BISHOP.getFigureAsString())
                        && !board.contains(ROOK.getFigureAsString())
                        && !board.contains(KNIGHT.getFigureAsString())
                        && board.contains(FIELD_UNDER_ATTACK_STRING)
                        && !board.contains(EMPTY_FIELD_STRING)
                        && leftOnlyFigures(board).length() == 1)
                .map(e -> 1)
                .reduce(0, (x, y) -> x + y), is(8));
    }