@Test
public void testGetEmrClusterPricesWithinLowestCoreInstancePriceZeroThresholdMultiplePricings() throws Exception
{

    List<EmrClusterPriceDto> pricingList = Arrays
        .asList(createSimpleEmrClusterPrice(AVAILABILITY_ZONE_1, BigDecimal.ONE), createSimpleEmrClusterPrice(AVAILABILITY_ZONE_2, BigDecimal.TEN),
            createSimpleEmrClusterPrice(AVAILABILITY_ZONE_3, BigDecimal.ONE.add(FIVE_UNIT)),
            createSimpleEmrClusterPrice(AVAILABILITY_ZONE_4, BigDecimal.ONE));
    List<EmrClusterPriceDto> lowestCoreInstancePriceClusters =
        emrPricingHelper.getEmrClusterPricesWithinLowestCoreInstancePriceThreshold(pricingList, BigDecimal.ZERO);
    assertEquals(2, lowestCoreInstancePriceClusters.size());
    for (EmrClusterPriceDto emrClusterPriceDto : lowestCoreInstancePriceClusters)
    {
        assertTrue(Arrays.asList(AVAILABILITY_ZONE_1, AVAILABILITY_ZONE_4).contains(emrClusterPriceDto.getAvailabilityZone()));
    }
}