### Question:
SecureComponentHelper { public static String alias(Component component) { if (component == null) throw new SecurityException("Specified component is null"); Page page = null; try { page = component.getPage(); } catch (IllegalStateException e) { throw new SecurityException("Unable to create alias for component: " + component, e); } String alias = alias(page.getClass()); String relative = component.getPageRelativePath(); if (relative == null || "".equals(relative)) return alias; return alias + PATH_SEPARATOR + relative; }  static ISecurityCheck getSecurityCheck(Component component); static Component setSecurityCheck(Component component, ISecurityCheck securityCheck); static boolean hasSecureModel(Component component); static boolean isActionAuthorized(Component component, String action); static boolean isActionAuthorized(Component component, WaspAction action); static boolean isAuthenticated(Component component); static String alias(Component component); static String alias(Class<?> class1); static String containerAlias(MarkupContainer container); static String[] containerAliasses(Component component); static final String PATH_SEPARATOR; }### Answer:
@Test public void testAlias() { TestPage page = new TestPage(); String alias = SecureComponentHelper.alias(page); assertEquals(TestPage.class.getName(), alias); alias = SecureComponentHelper.alias(page.get("txt1")); assertEquals(TestPage.class.getName() + ":txt1", alias); alias = SecureComponentHelper.alias(page.get("lvl2")); assertEquals(TestPage.class.getName() + ":lvl2", alias); alias = SecureComponentHelper.alias(page.get("lvl2:txt2")); assertEquals(TestPage.class.getName() + ":lvl2:txt2", alias); alias = SecureComponentHelper.alias(page.get("lvl2:lvl3")); assertEquals(TestPage.class.getName() + ":lvl2:lvl3", alias); alias = SecureComponentHelper.alias(page.get("lvl2:lvl3:txt3")); assertEquals(TestPage.class.getName() + ":lvl2:lvl3:txt3", alias); }