@Test
void testLinkInboundAssociatedService() {

    Bundle bundle = new Bundle();
    Folder folder = createFolder("my-folder-name", "my-folder-id", Folder.ROOT_FOLDER);
    Service service = createService("my-service-name", "my-service-id", folder, null, "");
    FolderTree folderTree = new FolderTree(ImmutableSet.of(folder, folder.getParentFolder()));
    bundle.setFolderTree(folderTree);
    bundle.addEntity(folder);
    bundle.addEntity(service);
    final ServiceResolutionSettings serviceResolutionSettings = new ServiceResolutionSettings();
    serviceResolutionSettings.setServiceRef("my-service-id");
    final InboundJmsDestinationDetail inboundDetail = new InboundJmsDestinationDetail();
    inboundDetail.setAcknowledgeType(ON_TAKE);
    inboundDetail.setReplyType(NO_REPLY);
    inboundDetail.setUseRequestCorrelationId(false);
    inboundDetail.setServiceResolutionSettings(serviceResolutionSettings);
    final JmsDestination jmsDestination = createJmsDestinationBuilder(null,null)
            .inboundDetail(inboundDetail)
            .build();
    
    linker.link(jmsDestination, bundle, bundle);
    assertNotNull(jmsDestination.getInboundDetail());
    assertNotNull(jmsDestination.getInboundDetail().getServiceResolutionSettings());
    assertEquals("my-folder-name/my-service-name", jmsDestination.getInboundDetail().getServiceResolutionSettings().getServiceRef());
}