ElloURI { public static boolean shouldLoadInApp(String url) { if (url.matches("^(https?: return true; } else if (url.matches("/\\S*$")) { return true; } else { return false; } }  static boolean shouldLoadInApp(String url);  }
@Test public void testShouldLoadInAppSucceeds() { assertTrue("https: assertTrue("https: assertTrue("https: assertTrue("https: assertTrue("https: assertTrue("https: assertTrue("/sean should load in app", ElloURI.shouldLoadInApp("/sean")); }
@Test public void testShouldLoadInAppFails() { assertFalse("https: assertFalse("https: assertFalse("yo/sean should NOT load in app", ElloURI.shouldLoadInApp("yo/sean")); }