@@ -0,0 +1,1542 @@
+/*%0A * Copyright 2010-2011 Ning, Inc.%0A *%0A * Ning licenses this file to you under the Apache License, version 2.0%0A * (the %22License%22); you may not use this file except in compliance with the%0A * License.  You may obtain a copy of the License at:%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the%0A * License for the specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage com.ning.billing.analytics.utils;%0A%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.math.BigDecimal;%0A%0Apublic class TestRounder%0A%7B%0A    @Test(groups = %22fast%22)%0A    public void testRound() throws Exception%0A    %7B%0A        Assert.assertEquals(Rounder.round(null), 0.0);%0A        Assert.assertEquals(Rounder.round(BigDecimal.ZERO), 0.0);%0A        Assert.assertEquals(Rounder.round(BigDecimal.ONE), 1.0);%0A        Assert.assertEquals(Rounder.round(BigDecimal.TEN), 10.0);%0A        Assert.assertEquals(Rounder.round(BigDecimal.valueOf(1.33333)), 1.3333);%0A        Assert.assertEquals(Rounder.round(BigDecimal.valueOf(4444.33333)), 4444.3333);%0A        Assert.assertEquals(Rounder.round(BigDecimal.valueOf(10.11111)), 10.1111);%0A        Assert.assertEquals(Rounder.round(BigDecimal.valueOf(10.11115)), 10.1112);%0A        Assert.assertEquals(Rounder.round(BigDecimal.valueOf(10.11116)), 10.1112);%0A    %7D%0A%7D%0A

add tests for Rounder