@Test
public void testGetFindOutliers()
{

    dataValueA = createDataValue( dataElementSingleQuoteName, periodI, organisationUnitA, "71",
        categoryOptionCombo );
    dataValueB = createDataValue( dataElementSingleQuoteName, periodJ, organisationUnitA, "-71",
        categoryOptionCombo );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodA, organisationUnitA, "5", categoryOptionCombo ) );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodB, organisationUnitA, "-5", categoryOptionCombo ) );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodC, organisationUnitA, "5", categoryOptionCombo ) );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodD, organisationUnitA, "-5", categoryOptionCombo ) );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodE, organisationUnitA, "10", categoryOptionCombo ) );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodF, organisationUnitA, "-10", categoryOptionCombo ) );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodG, organisationUnitA, "13", categoryOptionCombo ) );
    dataValueService.addDataValue(
        createDataValue( dataElementSingleQuoteName, periodH, organisationUnitA, "-13", categoryOptionCombo ) );
    dataValueService.addDataValue( dataValueA );
    dataValueService.addDataValue( dataValueB );
    double stdDevFactor = 2.0;
    List<Period> periods = new ArrayList<>();
    periods.add( periodI );
    periods.add( periodJ );
    periods.add( periodA );
    periods.add( periodE );
    List<DeflatedDataValue> values = stdDevOutlierAnalysisService.analyse( Lists.newArrayList( organisationUnitA ),
        dataElementsA, periods, stdDevFactor, from );
    double lowerBound = -34.51 * stdDevFactor;
    double upperBound = 34.51 * stdDevFactor;
    DeflatedDataValue valueA = new DeflatedDataValue( dataValueA );
    DeflatedDataValue valueB = new DeflatedDataValue( dataValueB );
    assertEquals( 1, values.size() );
    assertTrue( values.contains( valueA ) );
    assertFalse( values.contains( valueB ) );
}