JRE emul for a few test java8 APIs