### Question:
QuotaUtil { public static String getQuotaDescription(QuotaState q, String quotaDescriptionPattern) { String usedQuota = binaryPrefix(q.getSize(), Locale.getDefault()); String totalQuota = binaryPrefix(q.getQuota(), Locale.getDefault()); return MessageFormat.format(quotaDescriptionPattern, usedQuota, totalQuota); }  static String getQuotaDescription(QuotaState q, String quotaDescriptionPattern); static int getUsedRatioInPercent(QuotaState q);  }### Answer:
@Test public void quotaDescriptionWith90Free() { String quotaDescription = getQuotaDescription(qs10Free, QUOTA_PATTERN); assertThat(quotaDescription, containsString("10")); }
@Test public void quotaDescriptionWithNoFreeSpace() { String quotaDescription = getQuotaDescription(noSpaceQuota, QUOTA_PATTERN); assertThat(quotaDescription, containsString("0")); }