public double asMHz() {
        return (double) frequency / MHZ;
    }
@Test
    public void testasMHz() {
        Frequency frequency = Frequency.ofGHz(1);

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