@Test
public void test_freezePoint_all() {

    rec.setTotal(BigDecimal.valueOf(200L).setScale(DecimalUtils.SCALE_2))
            .setAvailable(BigDecimal.valueOf(30L).setScale(DecimalUtils.SCALE_2))
            .setFrozen(DecimalUtils.ZERO)
            .setTotalCost(BigDecimal.valueOf(100L).setScale(DecimalUtils.SCALE_2))
            .setUsedCost(BigDecimal.valueOf(40L).setScale(DecimalUtils.SCALE_2))
            .setFrozenCost(DecimalUtils.ZERO);
    PointRecCalcResult result = calculator.freezePoint(rec, BigDecimal.valueOf(30L));
    log.info("result = {}", result);
    Assertions.assertEquals(rec.getId(), result.getRec4Update().getId());
    Assertions.assertEquals(DecimalUtils.ZERO,   //
            rec.getAvailable() );
    Assertions.assertEquals(DecimalUtils.ZERO,   //
            result.getRec4Update().getAvailable() );
    Assertions.assertEquals(BigDecimal.valueOf(30L).setScale(DecimalUtils.SCALE_2), rec.getFrozen() );
    Assertions.assertEquals(BigDecimal.valueOf(30L).setScale(DecimalUtils.SCALE_2), result.getRec4Update().getFrozen() );
    Assertions.assertEquals(BigDecimal.valueOf(60L).setScale(DecimalUtils.SCALE_2), rec.getFrozenCost() );
    Assertions.assertEquals(BigDecimal.valueOf(60L).setScale(DecimalUtils.SCALE_2), result.getRec4Update().getFrozenCost() );
    Assertions.assertEquals(BigDecimal.valueOf(60L).setScale(DecimalUtils.SCALE_2), result.getDeltaCost() );
}