### Question:
ResourceAvailabilityUtil { public static boolean isDiskAvailable(float minPercentageAvailable) { return isDiskAvailable(ROOT_PATH, minPercentageAvailable); }  static boolean isMemoryAvailable(float minPercentageAvailable); static boolean isDiskAvailable(float minPercentageAvailable); static boolean isDiskAvailable(final String path, float minPercentageAvailable); static final String ROOT_PATH; }### Answer:
@Test public void testIsDiskAvailable_DefaultPath() { float reasonableMinAvailability = 0.0f; float unreasonableMinAvailability = 1.01f; boolean result1 = ResourceAvailabilityUtil.isDiskAvailable("/", reasonableMinAvailability); boolean result2 = ResourceAvailabilityUtil.isDiskAvailable(unreasonableMinAvailability); assertTrue(reasonableMinAvailability + "% minimum disk space should always be available", result1); assertTrue(unreasonableMinAvailability + "% minimum disk space should never be available", !result2); }