EntityLinkUtilities { public static String mkIdLink(String baseUrl, EntityKind kind, Long id) { checkNotNull(baseUrl, "baseUrl cannot be null"); checkNotNull(kind, "kind cannot be null"); checkNotNull(id, "id cannot be null"); return mkPath(baseUrl, "entity", kind.name(), "id", id); }  static String mkIdLink(String baseUrl, EntityKind kind, Long id); static String mkExternalIdLink(String baseUrl, EntityKind kind, String externalId);  }
@Test(expected = IllegalArgumentException.class) public void mkIdLink_kindCannotBeNull() { EntityLinkUtilities.mkIdLink("test", null, 23L); }
@Test(expected = IllegalArgumentException.class) public void mkIdLink_idCannotBeNull() { EntityLinkUtilities.mkIdLink("test", EntityKind.APPLICATION, null); }
@Test public void internal() { String path = EntityLinkUtilities.mkIdLink("test/", EntityKind.APPLICATION, 23L); assertEquals("test/entity/APPLICATION/id/23", path); }