### Question:
OnDeployExecutorImpl extends AnnotatedStandardMBean implements OnDeployExecutorMBean, OnDeployExecutor { @Override public TabularDataSupport getScripts() throws OpenDataException { TabularDataSupport scriptStatus = new TabularDataSupport(OnDeployExecutorImpl.getScriptsTableType()); try (ResourceResolver resourceResolver = logIn()) { if (scriptProviders != null) { for (OnDeployScriptProvider provider : scriptProviders) { List<OnDeployScript> scripts = provider.getScripts(); for (OnDeployScript script : scripts) { Resource trackingResource = getOrCreateStatusTrackingResource(resourceResolver, script.getClass()); ValueMap scriptStatusProps = trackingResource.adaptTo(ValueMap.class); Date startDate = scriptStatusProps.get(SCRIPT_DATE_START, Date.class); Date endDate = scriptStatusProps.get(SCRIPT_DATE_END, Date.class); String status = scriptStatusProps.get(SCRIPT_STATUS, ""); CompositeDataSupport scriptStatusData = new CompositeDataSupport(scriptsCompositeType, scriptsItemNames, new Object[] { provider.getClass().getCanonicalName(), script.getClass().getCanonicalName(), startDate, endDate, status }); scriptStatus.put(scriptStatusData); } } } } return scriptStatus; } OnDeployExecutorImpl(); @Override TabularDataSupport getScripts(); @Override boolean executeScript(String scriptName, boolean force);  }### Answer:
@Test public void testTabularData() throws OpenDataException, NotCompliantMBeanException { context.registerService(OnDeployScriptProvider.class, () -> asList( new OnDeployScriptTestExampleSuccess1(), new OnDeployScriptTestExampleSuccess2(), new OnDeployScriptTestExampleSuccessWithPause(), new OnDeployScriptTestExampleFailExecute())); OnDeployExecutorImpl onDeployExecutor = new OnDeployExecutorImpl(); try { context.registerInjectActivateService(onDeployExecutor); fail("Expected exception from failed script"); } catch (Exception e) { assertTrue(OnDeployEarlyTerminationException.class.isAssignableFrom(e.getCause().getClass())); } TabularData scriptsData = onDeployExecutor.getScripts(); assertEquals("wrong number of scripts registered in JXM data", 4, scriptsData.size()); for (Object o : scriptsData.values()) { CompositeData row = (CompositeData) o; String status = (String) row.get("status"); String script = (String) row.get("_script"); if (script.contains("Success")) { assertEquals("fail", "success", status); } } }