Service { public static native List<Id> ListDatabases() throws Error;  static native void Init(String rootDir, boolean testLogin, int logLevel); static native void Serve(); static native void Shutdown(); static native VersionedPermissions GetPermissions(); static native void SetPermissions(VersionedPermissions permissions); static native List<Id> ListDatabases(); static native void Login(String oAuthProvider, String oAuthToken); static native boolean IsLoggedIn();  }
@Test public void listDatabases() { assertTrue(Service.ListDatabases().isEmpty()); }