@Test
public void test_unfreezePoint_all() {

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