JSInteropApiConverter { protected static Settings getSettings(JSISettingsType source) { Settings toReturn = new Settings(); if (source != null) { toReturn.setDmoSession(source.getDmoSession()); toReturn.setType(ScenarioSimulationModel.Type.valueOf(source.getType())); toReturn.setFileName(source.getFileName()); toReturn.setKieSession(source.getKieSession()); toReturn.setKieBase(source.getKieBase()); toReturn.setRuleFlowGroup(source.getRuleFlowGroup()); toReturn.setDmnFilePath(source.getDmnFilePath()); toReturn.setDmnNamespace(source.getDmnNamespace()); toReturn.setDmnName(source.getDmnName()); toReturn.setSkipFromBuild(source.getSkipFromBuild()); toReturn.setStateless(source.getStateless()); } return toReturn; } private  JSInteropApiConverter(); static ScenarioSimulationModel getScenarioSimulationModel(JSIScenarioSimulationModelType source);  }
@Test public void getSettings() { JSISettingsType jsiSettingsTypeMock = mock(JSISettingsType.class); when(jsiSettingsTypeMock.getType()).thenReturn(ScenarioSimulationModel.Type.RULE.toString()); assertNotNull(JSInteropApiConverter.getSettings(jsiSettingsTypeMock)); checkAllRequiredMethodsAreCalled(JSISettingsType.class, Settings.class, jsiSettingsTypeMock); }