@Test
void buildBundleOnePolicy() {

    Policy policy = new Policy();
    policy.setName("from-file");
    when(entityLoaderRegistry.getEntityLoaders()).thenReturn(Collections.singleton(new TestPolicyLoader(policy)));
    BundleFileBuilder bundleFileBuilder = new BundleFileBuilder(documentTools, documentFileUtils,
            jsonFileUtils, entityLoaderRegistry, bundleEntityBuilder, bundleCache);
    bundleFileBuilder.buildBundle(new File("input"), new File("output"),Collections.emptyList(), projectInfo);
    verify(bundleEntityBuilder).build(argThat(bundle -> bundle.getPolicies().containsKey(policy.getName()) && bundle.getPolicies().containsValue(policy)),
            eq(EntityBuilder.BundleType.DEPLOYMENT), any(), eq(projectInfo));
}