@Test
public void cannotFindAssociatedContainerServiceId() throws Exception
{

    final long bundleId = 12;
    
    mockery.checking(new Expectations() {
        {
            allowing(mockContext).getBundle(bundleId);
            will(returnValue(mockBundle));
            oneOf(mockContext).getServiceReferences(with(any(String.class)), with(any(String.class)));
            //return null if no services are registered which satisfy the search
            will(returnValue(null));
        }
    });
    // 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));
        }
    });
    assertEquals(-1, metadata.getBlueprintContainerServiceId(bundleId));
}