public static boolean isAppSecured(ApplicationId appId) {
        SecurityAdminService service = getSecurityService();
        if (service != null) {
            if (!service.isSecured(appId)) {
                System.out.println("\n*******************************");
                System.out.println("      SM-ONOS APP WARNING      ");
                System.out.println("*******************************");
                System.out.println(appId.name() + " has not been secured.");
                System.out.println("Please review before activating.");
                return false;
            }
        }
        return true;
    }
@Test
    public void testIsAppSecured() {
        assertFalse(service.isSecured(appId));
    }