public String toHumanReadableString() {
        return String.format(
                "%.2f cores", getValue().setScale(2, ROUND_HALF_UP).stripTrailingZeros());
    }
@Test
    void toHumanReadableString() {
        assertThat(new CPUResource(0).toHumanReadableString()).isEqualTo("0.00 cores");
        assertThat(new CPUResource(1).toHumanReadableString()).isEqualTo("1.00 cores");
        assertThat(new CPUResource(1.2).toHumanReadableString()).isEqualTo("1.20 cores");
        assertThat(new CPUResource(1.23).toHumanReadableString()).isEqualTo("1.23 cores");
        assertThat(new CPUResource(1.234).toHumanReadableString()).isEqualTo("1.23 cores");
        assertThat(new CPUResource(1.235).toHumanReadableString()).isEqualTo("1.24 cores");
        assertThat(new CPUResource(10).toHumanReadableString()).isEqualTo("10.00 cores");
        assertThat(new CPUResource(100).toHumanReadableString()).isEqualTo("100.00 cores");
        assertThat(new CPUResource(1000).toHumanReadableString()).isEqualTo("1000.00 cores");
        assertThat(new CPUResource(123456789).toHumanReadableString())
                .isEqualTo("123456789.00 cores");
        assertThat(new CPUResource(12345.6789).toHumanReadableString()).isEqualTo("12345.68 cores");
    }