### Question:
CustomPageDependenciesResolver { public File getTempFolder() { if (libTempFolder == null) { throw new IllegalStateException("Custom page dependencies must be resolved first."); } return libTempFolder; } CustomPageDependenciesResolver(final String pageName,
            final File pageDirectory,
            final WebBonitaConstantsUtils webBonitaConstantsUtils); Map<String, byte[]> resolveCustomPageDependencies(); static File removePageLibTempFolder(final String pageName); File getTempFolder();  }### Answer:
@Test public void should_throw_an_IllegalStateException_when_accessing_tmp_folder_before_resolving_libraries() throws Exception { final CustomPageDependenciesResolver resolver = newCustomPageDependenciesResolver(null); expectedException.expect(IllegalStateException.class); resolver.getTempFolder(); }