Utils { public void logIssue(String message, Throwable ex){ foamLogger.w(message, ex); }  boolean isBlank(final CharSequence cs); boolean isNotBlank(final CharSequence cs); String trimToSize(String str, int maxStringLength); void sleep(int ms); void logIssue(String message, Throwable ex); String getApplicationName(Context context); String getVersionName(Context context); int getVersionCode(Context context); String getApplicationPackageName(Context context); @NonNull String getAndroidId(Context context); boolean isOnWifi(Context context);  }
@Test public void testLogIssue() { Utils.FoamLogger mockLogger = mock(Utils.FoamLogger.class); utils.foamLogger = mockLogger; Exception exception = new RuntimeException("Unit Testing"); utils.logIssue("Test Log Message", exception); verify(mockLogger).w(eq("Test Log Message"), eq(exception)); }