### Question:
LogcatFormatter implements Formatter { @Override public String format(int priority, String tag, @NotNull String message) { String prio = prioPrefixes.get(priority); if (prio == null) { prio = ""; } return timeStamper.getCurrentTimeStamp(osInfoProvider.currentTimeMillis()) + SEP + prio + (tag == null ? "" : tag) + "(" + osInfoProvider.getCurrentThreadId() + ") :" + SEP + message + "\n"; } private  LogcatFormatter(); @Override String format(int priority, String tag, @NotNull String message); void setTimeStamper(TimeStamper timeStamper); TimeStamper getTimeStamper(); OsInfoProvider getOsInfoProvider(); void setOsInfoProvider(OsInfoProvider osInfoProvider); static final LogcatFormatter INSTANCE; }### Answer:
@Test public void format() { assertThat(formatter.format(1, "tag", "message"), is("10-25 10:13:15:000 tag(1) : message\n")); assertThat(formatter.format(2, "tag", "message"), is("10-25 10:13:16:000 V/tag(1) : message\n")); assertThat(formatter.format(3, "tag", "message"), is("10-25 10:13:17:000 D/tag(1) : message\n")); assertThat(formatter.format(4, "tag", "message"), is("10-25 10:13:18:000 I/tag(1) : message\n")); assertThat(formatter.format(5, "tag", "message"), is("10-25 10:13:19:000 W/tag(1) : message\n")); assertThat(formatter.format(6, "tag", "message"), is("10-25 10:13:20:000 E/tag(1) : message\n")); assertThat(formatter.format(7, "tag", "message"), is("10-25 10:13:21:000 WTF/tag(1) : message\n")); assertThat(formatter.format(8, "tag", "message"), is("10-25 10:13:22:000 tag(1) : message\n")); }