@Test
public void validGetBlueprintContainerServiceId() throws Exception {

    final long bundleId = 12;
    final long serviceId = 7117;
    
    mockery.checking(new Expectations() {
        {
            allowing(mockContext).getBundle(bundleId);
            will(returnValue(mockBundle));
            oneOf(mockContext).getServiceReferences(with(any(String.class)), with(any(String.class)));
            will(returnValue(mockServiceReferences));
        }
    });
    // is there any need?
    mockery.checking(new Expectations() {
        {
            allowing(mockBundle).getSymbolicName();
            will(returnValue("org.apache.geronimo.blueprint.testXXX"));
            allowing(mockBundle).getVersion();
            will(returnValue(Version.emptyVersion));
        }
    });
    mockery.checking(new Expectations() {
        {
            allowing(mockServiceReferences[0]).getProperty(Constants.SERVICE_ID);
            will(returnValue(serviceId));
        }
    });
    assertEquals(serviceId, metadata.getBlueprintContainerServiceId(bundleId));
}