### Question:
FilePropertiesStack { public void pop() { Preconditions.checkState(stack.size() > 0, "Error in file properties stack pop, popping at 0"); stack.remove(stack.size() - 1); updateProperties(); } FilePropertiesStack(); void push(FilePropertiesSpec filePropertiesSpec); void pop(); FilePermissions getFilePermissions(); FilePermissions getDirectoryPermissions(); Instant getModificationTime(); String getOwnership();  }### Answer:
@Test public void testPop_nothingToPop() { FilePropertiesStack testStack = new FilePropertiesStack(); try { testStack.pop(); Assert.fail(); } catch (IllegalStateException ise) { Assert.assertEquals("Error in file properties stack pop, popping at 0", ise.getMessage()); } }