@Test
void buildWithCustomPortReferencingService_expectedException() {

    ListenPortEntityBuilder builder = new ListenPortEntityBuilder(ID_GENERATOR);
    final Bundle bundle = new Bundle();
    addPortToBundle(bundle, buildPortWithServiceRef());
    assertThrows(BundleLoadException.class, () -> builder.build(bundle, BundleType.DEPLOYMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument()));
}