RuntimeProvider { public static Timestamp createTimestamp() { return dialect.createTimestamp(); } private  RuntimeProvider(); static boolean isAndroid(); static ClassLoader getClassLoader(); static String getDefaultWriter(); static long getProcessId(); static Timestamp getStartTime(); static String getCallerClassName(final int depth); static String getCallerClassName(final String loggerClassName); static StackTraceElement getCallerStackTraceElement(final int depth); static StackTraceElement getCallerStackTraceElement(final String loggerClassName); static Timestamp createTimestamp(); static TimestampFormatter createTimestampFormatter(final String pattern, final Locale locale);  }
@Test public void createTimestamp() throws InterruptedException { Timestamp timestamp = RuntimeProvider.createTimestamp(); assertThat(timestamp.toInstant()).isBetween(Instant.now().minusSeconds(1), Instant.now()); Thread.sleep(2); assertThat(RuntimeProvider.createTimestamp().toInstant()).isAfter(timestamp.toInstant()); }