@Test
public void testNormalizeDateLineCrossingWest() {

  final double minRange = -200;
  final double maxRange = -170;
  final int expectedBinCount = 2;
  final BinRange[] expectedBinRanges =
      new BinRange[] {new BinRange(-180, -170), new BinRange(160, 180)};
  final BinRange[] binRange = getNormalizedRanges(minRange, maxRange);
  Assert.assertEquals(expectedBinCount, binRange.length);
  for (int i = 0; i < binRange.length; i++) {
    Assert.assertEquals(
        expectedBinRanges[i].getNormalizedMin(),
        binRange[i].getNormalizedMin(),
        DELTA);
    Assert.assertEquals(
        expectedBinRanges[i].getNormalizedMax(),
        binRange[i].getNormalizedMax(),
        DELTA);
  }
}