FragmentsLogging { public static void e(@NonNull final String tag, @NonNull final String message) { logger.e(tag, message); } private  FragmentsLogging(); static void setLogger(@Nullable final Logger logger); @NonNull static Logger getLogger(); static void d(@NonNull final String tag, @NonNull final String message); static void d(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void v(@NonNull final String tag, @NonNull final String message); static void v(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void i(@NonNull final String tag, @NonNull final String message); static void i(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void w(@NonNull final String tag, @NonNull final String message); static void w(@NonNull final String tag, @Nullable final Throwable throwable); static void w(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void e(@NonNull final String tag, @NonNull final String message); static void e(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void wtf(@NonNull final String tag, @NonNull final String message); static void wtf(@NonNull final String tag, @Nullable final Throwable throwable); static void wtf(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable);  }
@Test public void testE() { final Logger mockLogger = mock(Logger.class); FragmentsLogging.setLogger(mockLogger); FragmentsLogging.e(LOG_TAG, "message.error"); FragmentsLogging.e(LOG_TAG, "message.error", null); verify(mockLogger).e(LOG_TAG, "message.error"); verify(mockLogger).e(LOG_TAG, "message.error", null); verifyNoMoreInteractions(mockLogger); }