@Test
public void testDiskSpaceMessagesPatchWhenInsufficientSpace() throws Exception {

    final long fullInstallationDownloadSize = 0;
    final long patchesDownloadSize = 1200*1024*1024L + 42;
    final long spaceToBeFreedUp = 0;
    Pair<HtmlBuilder, HtmlBuilder> messages = SdkUpdaterConfigurable.getDiskUsageMessages(mySdkRoot, fullInstallationDownloadSize,
                                                                                          patchesDownloadSize, spaceToBeFreedUp);
    assertEquals(String.format(DISK_USAGE_HTML_TEMPLATE_WITHOUT_SPACE_TO_FREE_UP, "1.2 GB", "1.2 GB", "1.0 GB"),
                 messages.getFirst().getHtml());
    assertEquals(WARNING_HTML, messages.getSecond().getHtml());
}