GetProfile implements StellarFunction { @Override public void initialize(Context context) { }  @Override void initialize(Context context); @Override boolean isInitialized(); @Override Object apply(List<Object> args, Context context);  }
@Test public void testMissingContext() { Context empty = Context.EMPTY_CONTEXT(); executor.setContext(empty); SingletonFunctionResolver.getInstance().initialize(empty); String expr = "PROFILE_GET('profile1', 'entity1', PROFILE_FIXED(1000, 'SECONDS'), groups)"; assertThrows(ParseException.class, () -> run(expr, List.class)); }