### Question:
FormsResourcesUtils { protected static ClassLoader setCorrectHierarchicalClassLoader(ClassLoader processClassLoader, final ClassLoader parentClassLoader) { if (processClassLoader == null) { processClassLoader = parentClassLoader; } return processClassLoader; }  static synchronized void retrieveApplicationFiles(final APISession session, final long processDefinitionID, final Date processDeployementDate); ClassLoader getProcessClassLoader(final APISession session, final long processDefinitionID); static synchronized void removeApplicationFiles(final APISession session, final long processDefinitionID); static File getApplicationResourceDir(final APISession session, final long processDefinitionID, final Date processDeployementDate); static String getBusinessDataModelVersion(final APISession session); final static String FORMS_DIRECTORY_IN_BAR; final static String LIB_DIRECTORY_IN_BAR; final static String VALIDATORS_DIRECTORY_IN_BAR; final static String UUID_SEPARATOR; }### Answer:
@Test public void setCorrectHierarchicalClassLoaderShouldsetParentClassloaderIfCLIsNull() throws Exception { final ClassLoader processClassLoader = null; final ClassLoader parentClassLoader = mock(ClassLoader.class); final ClassLoader realCL = FormsResourcesUtils.setCorrectHierarchicalClassLoader(processClassLoader, parentClassLoader); assertThat(realCL).isEqualTo(parentClassLoader); }