@Test
public void testFormatStorageSize() {

    long storageInB = 128L;
    final String storageInBFormatted = formatStorageSize(application,
                                                         storageInB);
    assertNotNull(storageInB);
    assertEquals("128 B",
                 storageInBFormatted);
    long storageInKb = 1024L;
    final String storageInKbFormatted = formatStorageSize(application,
                                                          storageInKb);
    assertNotNull(storageInKb);
    assertEquals("1.0 kB",
                 storageInKbFormatted);
    long storageInMb = storageInKb * 1024;
    final String storageInMbFormatted = formatStorageSize(application,
                                                          storageInMb);
    assertNotNull(storageInMb);
    assertEquals("1.0 MB",
                 storageInMbFormatted);
    long storageInGb = storageInMb * 1024;
    final String storageInGbFormatted = formatStorageSize(application,
                                                          storageInGb);
    assertNotNull(storageInGb);
    assertEquals("1.0 GB",
                 storageInGbFormatted);
}