@Test
public void testHasRoutingInMetadata() {

    BundleEntityBuilder builder = createBundleEntityBuilder();
    Bundle bundle = createBundle(BASIC_ENCASS_POLICY, false, false, false, projectInfo);
    Encass encass = buildTestEncassWithAnnotation(TEST_GUID, TEST_ENCASS_POLICY, true);
    bundle.putAllEncasses(ImmutableMap.of(TEST_ENCASS, encass));
    Map<String, BundleArtifacts> bundles = builder.build(bundle, EntityBuilder.BundleType.DEPLOYMENT,
            DocumentTools.INSTANCE.getDocumentBuilder().newDocument(), new ProjectInfo("my-bundle", "my-bundle-group", "1.0"));
    assertNotNull(bundles);
    assertEquals(1, bundles.size());
    BundleMetadata metadata = bundles.get(TEST_ENCASS_ANNOTATION_NAME + "-1.0").getBundleMetadata();
    assertNotNull(metadata);
    assertEquals(TEST_ENCASS_ANNOTATION_NAME, metadata.getName());
    assertFalse(metadata.isHasRouting());
}