### Question:
App { public static void main(String[] args) { var service = ServiceLocator.getService(JNDI_SERVICE_A); service.execute(); service = ServiceLocator.getService(JNDI_SERVICE_B); service.execute(); service = ServiceLocator.getService(JNDI_SERVICE_A); service.execute(); service = ServiceLocator.getService(JNDI_SERVICE_A); service.execute(); }  static void main(String[] args); static final String JNDI_SERVICE_A; static final String JNDI_SERVICE_B; }### Answer:
@Test void shouldExecuteWithoutException() { assertDoesNotThrow(() -> App.main(new String[]{})); }