public void testFunctionBlacklistQueryProviderBean() {
final FunctionBlacklistProvider provider = Mockito.mock(FunctionBlacklistProvider.class);
final FunctionBlacklist blacklist = new EmptyFunctionBlacklist();
Mockito.when(provider.getBlacklist("BL_Foo")).thenReturn(blacklist);
final FunctionBlacklistQueryProviderBean bean = new FunctionBlacklistQueryProviderBean();
bean.setBlacklistPrefix("BL_");
bean.setBlacklistProvider(provider);
final FunctionBlacklistQuery query = bean.getQuery("Foo");
assertTrue(query.isEmpty());
}