### Question:
Period { public static Period mins(int mins) { return new Minutes(mins); }  abstract int howLong(); abstract TimeUnit timeUnit(); abstract long getEndMillis(long from); static Period millis(int millis); static Period secs(int secs); static Period mins(int mins);  }### Answer:
@Test public void testMins() { Period period = Period.mins(789); assertThat(period.timeUnit(), equalTo(TimeUnit.MINUTES)); assertThat(period.howLong(), equalTo(789)); assertThat(period.toString(), equalTo("mins(789)")); }