RuntimeProvider { public static TimestampFormatter createTimestampFormatter(final String pattern, final Locale locale) { return dialect.createTimestampFormatter(pattern, locale); } 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 createTimestampFormatter() { TimestampFormatter formatter = RuntimeProvider.createTimestampFormatter("yyyy-MM-dd HH:mm", Locale.US); Timestamp timestamp = TimestampFactory.create(1985, 6, 3, 12, 30); assertThat(formatter.format(timestamp)).isEqualTo("1985-06-03 12:30"); }