@Test
public void populateUpdateResultSupported() {

    SUPPORTED_NORMALIZATION_METHODS.forEach(normalizationMethod -> {
        KiePMMLRegressionTableRegressionFactory.populateUpdateResult(modelTemplate, normalizationMethod);
        MethodDeclaration methodDeclaration =
                modelTemplate.getMethodsByName("updateResult").get(0);
        BlockStmt body = methodDeclaration.getBody().get();
        assertNotNull(body.getStatements());
        if (normalizationMethod.equals(RegressionModel.NormalizationMethod.NONE)) {
            assertTrue(body.getStatements().isEmpty());
        } else {
            assertFalse(body.getStatements().isEmpty());
        }
    });
}