@Test
void buildPolicyEntityTest() {

    PolicyEntityBuilder policyEntityBuilder = new PolicyEntityBuilder(DocumentTools.INSTANCE, new IdGenerator(), policyXMLBuilder);
    Policy policyToBuild = new Policy();
    policyToBuild.setPath("/path");
    policyToBuild.setName("path");
    policyToBuild.setId("policy-id");
    policyToBuild.setGuid("policy-guid-123");
    Folder parentFolder = new Folder();
    parentFolder.setId("folder-id");
    policyToBuild.setParentFolder(parentFolder);
    Entity policyEntity = policyEntityBuilder.buildPolicyEntity(policyToBuild, null, bundle, document);
    assertEquals(policyToBuild.getId(), policyEntity.getId());
}