@Test
public void testFindMax() {

    LOG.info("testFindMax");
    final double[] a1 = {1, 2, 3};
    final double[] a2 = {3, 1, 2};
    final double[] a3 = {2, 3, 1};
    Assert.assertTrue("Max should be 3", Double.compare(MathUtils.findMax(a1), 3.0) == 0);
    Assert.assertTrue("Max should be 3", Double.compare(MathUtils.findMax(a2), 3.0) == 0);
    Assert.assertTrue("Max should be 3", Double.compare(MathUtils.findMax(a3), 3.0) == 0);
    final double[] b1 = {-1, 2, 3};
    final double[] b2 = {3, -1, 2};
    final double[] b3 = {2, 3, -1};
    Assert.assertTrue("Max should be 3", Double.compare(MathUtils.findMax(b1), 3.0) == 0);
    Assert.assertTrue("Max should be 3", Double.compare(MathUtils.findMax(b2), 3.0) == 0);
    Assert.assertTrue("Max should be 3", Double.compare(MathUtils.findMax(b3), 3.0) == 0);
}