@Test
public void testDiskSpaceMessagesPatchAndUninstall() throws Exception {

  final long fullInstallationDownloadSize = 0;
  final long patchesDownloadSize = 20 * 1024 * 1024L + 42;
  final long spaceToBeFreedUp = 9 * 1024 * 1024L + 42;
  Pair<HtmlBuilder, HtmlBuilder> messages = SdkUpdaterConfigurable.getDiskUsageMessages(mySdkRoot, fullInstallationDownloadSize,
                                                                                        patchesDownloadSize, spaceToBeFreedUp);
  assertEquals(String.format(DISK_USAGE_HTML_TEMPLATE, "9.0 MB", "20.0 MB", "11.0 MB", "1.0 GB"),
               messages.getFirst().getHtml());
  assertNull(messages.getSecond());
}