### Question:
ES4X extends Launcher { @Override public void beforeStartingVertx(VertxOptions options) { processProperty("polyglot", "true", polyglot -> System.setProperty("es4x.polyglot", polyglot)); processProperty("inspect", "9229", inspect -> { System.setProperty("polyglot.inspect", inspect); options.setBlockedThreadCheckInterval(1000000); }); processProperty("inspect-brk", "9229", inspect -> { System.setProperty("polyglot.inspect", inspect); System.setProperty("polyglot.inspect.Suspend", "true"); options.setBlockedThreadCheckInterval(1000000); }); }  @Override void beforeStartingVertx(VertxOptions options); static void main(String... args);  }### Answer:
@Test public void testEmptyPolyglot() { System.setProperty("polyglot", ""); ES4X runner = new ES4X(); runner.beforeStartingVertx(new VertxOptions()); assertNull(System.getProperty("polyglot")); assertNotNull(System.getProperty("es4x.polyglot")); assertEquals("true", System.getProperty("es4x.polyglot")); }
@Test public void testPolyglot() { System.setProperty("polyglot", "false"); ES4X runner = new ES4X(); runner.beforeStartingVertx(new VertxOptions()); assertNull(System.getProperty("polyglot")); assertNotNull(System.getProperty("es4x.polyglot")); assertEquals("false", System.getProperty("es4x.polyglot")); }
@Test public void testInspect() { System.setProperty("inspect", ""); ES4X runner = new ES4X(); runner.beforeStartingVertx(new VertxOptions()); assertNull(System.getProperty("inspect")); assertNotNull(System.getProperty("polyglot.inspect")); assertEquals("9229", System.getProperty("polyglot.inspect")); }
@Test public void testInspectBrk() { System.setProperty("inspect-brk", ""); ES4X runner = new ES4X(); runner.beforeStartingVertx(new VertxOptions()); assertNull(System.getProperty("inspect-brk")); assertNotNull(System.getProperty("polyglot.inspect")); assertNotNull(System.getProperty("polyglot.inspect.Suspend")); assertEquals("9229", System.getProperty("polyglot.inspect")); assertEquals("true", System.getProperty("polyglot.inspect.Suspend")); }
@Test public void testInspectWithValue() { System.setProperty("inspect", "11111"); ES4X runner = new ES4X(); runner.beforeStartingVertx(new VertxOptions()); assertNull(System.getProperty("inspect")); assertNotNull(System.getProperty("polyglot.inspect")); assertEquals("11111", System.getProperty("polyglot.inspect")); }
@Test public void testInspectBrkWithValue() { System.setProperty("inspect-brk", "11223"); ES4X runner = new ES4X(); runner.beforeStartingVertx(new VertxOptions()); assertNull(System.getProperty("inspect-brk")); assertNotNull(System.getProperty("polyglot.inspect")); assertNotNull(System.getProperty("polyglot.inspect.Suspend")); assertEquals("11223", System.getProperty("polyglot.inspect")); assertEquals("true", System.getProperty("polyglot.inspect.Suspend")); }