Or just pass a string literal, then equals should work correctly
assertThat(obj.getTotal()).isEqualTo(BigDecimal.valueOf("4.00"))