KogitoDMNDataManagementStrategy extends AbstractDMNDataManagementStrategy { protected RemoteCallback<String> getDMNContentRemoteCallback(RemoteCallback<FactModelTuple> callback) { return dmnContent -> { DMN12UnmarshallCallback dmn12UnmarshallCallback = getDMN12UnmarshallCallback(callback); MainJs.unmarshall(dmnContent, "", dmn12UnmarshallCallback); }; } KogitoDMNDataManagementStrategy(EventBus eventBus, KogitoDMNService dmnTypeService);   }
@Test public void getDMNContentRemoteCallback() { RemoteCallback<String> remoteCallback = kogitoDMNDataManagementStrategySpy.getDMNContentRemoteCallback(remoteCallbackMock); Assert.assertNotNull(remoteCallback); remoteCallback.callback(""); verify(kogitoDMNDataManagementStrategySpy, times(1)).getDMN12UnmarshallCallback(eq(remoteCallbackMock)); }