@Test
public void formatDecimal() {

    String[] formatedDecimals = new String[]{"4", "78.1", "56.34", "56.34", "78.1"};
    double[] decimals = new double[]{4, 78.1, 56.34, 56.3409, 78.10};
    for (int i = 0; i < formatedDecimals.length; i++) {
        assertEquals(formatedDecimals[i], DownloadProgressNotification.formatDecimal(decimals[i]));
    }
}