DefaultVariantProvider implements VariantProvider { public String timestamp() { return String.valueOf(System.currentTimeMillis() / SECONDS); } DefaultVariantProvider(Random rdm); String timestamp(); String nonce();  }
@Test public void timestampShouldGetCurrentTimeAsSeconds(){ long currentSeconds = System.currentTimeMillis() / 1000; long actual = valueOf(toTest.timestamp()); assertTrue(currentSeconds == actual || (currentSeconds + 1) == actual); }