@Test
public void testFindMin() {

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