### Question:
HeatStackAudit { protected Optional<String> extractResourcePathFromHref(String href) { try { Optional<String> stackPath = extractStackPathFromHref(href); if (stackPath.isPresent()) { return Optional.of(stackPath.get() + RESOURCES); } else return Optional.empty(); } catch (Exception e) { logger.error("Error parsing URI", e); } return Optional.empty(); }  Optional<AAIObjectAuditList> queryHeatStack(String cloudOwner, String cloudRegion, String tenantId,
            String heatStackName); Optional<AAIObjectAuditList> auditHeatStack(String cloudRegion, String cloudOwner, String tenantId,
            String heatStackName);  }### Answer:
@Test public void extract_proper_resources_path_Test() { Optional<String> actualResult = extractResourcePathFromHref( "https: assertEquals("/stacks/test_stack/f711be16-2654-4a09-b89d-0511fda20e81/resources", actualResult.get()); }