public static Frequency ofTHz(long value) {
        return new Frequency(value * THZ);
    }
@Test
    public void testofTHz() {
        Frequency frequency = Frequency.ofTHz(1.0);
        assertThat(frequency.asGHz(), is(1000.0));
    }