@Test
    public void setNextFigure() {
        HashMap<String, Integer> figureQuantityMap = new HashMap<>();
        figureQuantityMap.put(KING.getFigureAsString(), 1);
        FiguresChain figuresChain = new Bishop(figureQuantityMap);
        FiguresChain figuresChain1 = new Queen(figureQuantityMap);

        figuresChain.setNextFigure(figuresChain1);
        assertThat("object is null", Objects.nonNull(figuresChain.getChain()), is(true));
        assertThat("object is null", Objects.nonNull(figuresChain.getChain()), is(true));

        if(!Objects.isNull(figuresChain.getFigureQuantityMap())) {
            assertThat("key is not present", figuresChain.getFigureQuantityMap().containsKey(KING.getFigureAsString()), is(true));
            assertThat("value is not present", figuresChain.getFigureQuantityMap().containsValue(1), is(true));
        }
        assertThat("object is of different type", figuresChain.placementBehavior instanceof BishopsPlacement, is(true));
    }