RouterInject { public static void inject(Fragment fragment) { if (fragment == null) { return; } Bundle arguments = fragment.getArguments(); if (arguments == null || arguments.size() == 0) { return; } try { inject(fragment, arguments, null); } catch (Exception e) { LoggerUtils.handleException(e); } }  static void inject(Fragment fragment); static void inject(Activity activity); static void inject(Activity activity, Intent intent); static GActivityBuilder getNextNav(Intent intent); static void inject(Object targetObject, Bundle extras, Uri uri);  }
@Test public void inject() { Object value = null; if (new Random().nextBoolean()){ value = ""; }else { value = new Integer(1); } if (Number.class.isAssignableFrom(value.getClass())){ System.out.println("true"); }else { System.out.println("false"); } }