public double asGHz() {
        return (double) frequency / GHZ;
    }
@Test
    public void testasGHz() {
        Frequency frequency = Frequency.ofTHz(1);

        assertThat(frequency.asGHz(), is(1000.0));
    }