### Question:
BindingPropertyConverter { public static org.kie.dmn.model.api.Binding dmnFromWB(final Binding wb, final Consumer<ComponentWidths> componentWidthsConsumer) { if (wb == null) { return null; } final org.kie.dmn.model.api.Binding result = new org.kie.dmn.model.v1_2.TBinding(); final org.kie.dmn.model.api.InformationItem convertedParameter = InformationItemPropertyConverter.dmnFromWB(wb.getParameter()); final org.kie.dmn.model.api.Expression convertedExpression = ExpressionPropertyConverter.dmnFromWB(wb.getExpression(), componentWidthsConsumer); if (convertedParameter != null) { convertedParameter.setParent(result); } result.setParameter(convertedParameter); if (convertedExpression != null) { convertedExpression.setParent(result); } result.setExpression(convertedExpression); return result; }  static Binding wbFromDMN(final org.kie.dmn.model.api.Binding dmn,
                                    final BiConsumer<String, HasComponentWidths> hasComponentWidthsConsumer); static org.kie.dmn.model.api.Binding dmnFromWB(final Binding wb,
                                                          final Consumer<ComponentWidths> componentWidthsConsumer);  }### Answer:
@Test public void testDMNFromWB() { final Binding wb = new Binding(); final InformationItem informationItem = new InformationItem(); wb.setParameter(informationItem); final LiteralExpression literalExpression = new LiteralExpression(); literalExpression.getComponentWidths().set(0, 200.0); literalExpression.getId().setValue(EXPRESSION_UUID); wb.setExpression(literalExpression); final org.kie.dmn.model.api.Binding dmn = BindingPropertyConverter.dmnFromWB(wb, componentWidthsConsumer); assertThat(dmn).isNotNull(); assertThat(dmn.getParameter()).isNotNull(); assertThat(dmn.getExpression()).isNotNull(); assertThat(dmn.getExpression().getId()).isEqualTo(EXPRESSION_UUID); verify(componentWidthsConsumer).accept(componentWidthsCaptor.capture()); final ComponentWidths componentWidths = componentWidthsCaptor.getValue(); assertThat(componentWidths).isNotNull(); assertThat(componentWidths.getDmnElementRef().getLocalPart()).isEqualTo(EXPRESSION_UUID); assertThat(componentWidths.getWidths().size()).isEqualTo(literalExpression.getRequiredComponentWidthCount()); assertThat(componentWidths.getWidths().get(0)).isEqualTo(200.0); }