LogglyTree extends Timber.Tree { @Override protected void log(int priority, String tag, String message, Throwable t) { loggly.log(formatter.format(priority, tag, message, t), handler); } LogglyTree(String token);   LogglyTree(ILogglyClient client, ILogglyClient.Callback handler, IFormatter formatter); void tag(String tag);  }
@Test public void logInvokesClient() { tree.d("hello %1$s", "world"); verify(client).log(anyString(), eq(callback)); }