ThunderClientBuilder { static String ensureTrailingSlashExists(String url) { return url.endsWith("/") ? url : url + "/"; } ThunderClientBuilder(); ThunderClientBuilder endpoint(String endpoint); ThunderClientBuilder authentication(String apiUser, String apiSecret); ThunderClient build();  }
@Test void testEnsureTrailingSlashExistsNoChange() { String url = "https: String result = ThunderClientBuilder.ensureTrailingSlashExists(url); assertEquals(url, result); }
@Test void testEnsureTrailingSlashExistsNoSlash() { String url = "https: String result = ThunderClientBuilder.ensureTrailingSlashExists(url); assertNotEquals(url, result); assertEquals("https: }