JSONObject responseObject = new JSONObject(response.getText());
assertNotNull("No directory information in response", responseObject);
IFileStore workspaceStore = OrionConfiguration.getMetaStore().getWorkspaceContentLocation(workspaceId);
IFileStore localFolder = workspaceStore.getChild(newDirectoryName);
assertTrue("Create directory response was OK, but the directory does not exist", localFolder.fetchInfo().exists() && localFolder.fetchInfo().isDirectory());
checkDirectoryMetadata(responseObject, newDirectoryName, null, null, null, null, null);
//should be able to perform GET on location header to obtain metadata
String location = response.getHeaderField(ProtocolConstants.HEADER_LOCATION);
request = getGetRequest(location);