    @Test
    public void testHasBeanOfName_noLocator() {

        when(source1.hasBeanOfName(eq("test"))).thenReturn(false);
        when(source2.hasBeanOfName(eq("test"))).thenReturn(false);

        Assert.assertFalse(multisourceBeanLocator.hasBeanOfName("test"));
    }