public double asTHz() {
        return (double) frequency / THZ;
    }
@Test
    public void testasTHz() {
        Frequency frequency = Frequency.ofHz(1_000_000_000_000L);

        assertThat(frequency.asTHz(), is(1.0));
    }