SystemClock implements Clock { static int parseJavaVersion(String property) { val sections = property.split("\\."); val index = sections[0].indexOf("-"); val major = Integer.parseInt((index == -1) ? sections[0] : sections[0].substring(0, index)); return major == 1 ? Integer.parseInt(sections[1]) : major; }  @Override long currentTimeMicros(); @Override long currentNanoTicks(); @Override boolean isMicrosAccurate();  }
@Test public void test() { assertThat(SystemClock.parseJavaVersion(property), equalTo(version)); }