@Test
public void shouldCorrectlyConstructBoundariesWithWindowSmallerThanActualFloats() {

    List<Float> boundaries = Histogram.getBucketBoundaries(new FloatOperations(), 10.0f, 20.0f, 5.0f, 25.0f, 12, 3);
    assertNotNull(boundaries);
    assertEquals(13, boundaries.size());
    Float[] expectedBoundaries = {5.0f, 10.0f, 11f, 12f, 13f, 14f, 15f, 16f, 17f, 18f, 19f, 20f, 25f};
    assertArrayEquals(expectedBoundaries, boundaries.toArray(new Float[boundaries.size()]));
}