@Test
void buildDeploymentBundleWithDuplicateProps() {

    ClusterPropertyEntityBuilder builder = new ClusterPropertyEntityBuilder(ID_GENERATOR);
    Bundle bundle = new Bundle();
    bundle.putAllStaticProperties(STATIC_PROPS);
    //Duplicate prop envprop1 in both static and env props
    bundle.getStaticProperties().put("envprop1", new ClusterProperty("envprop1", "some value"));
    bundle.putAllGlobalEnvironmentProperties(ENV_PROPS);
    assertThrows(EntityBuilderException.class, () -> builder.build(bundle, BundleType.DEPLOYMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument()));
}