public ExpectedException expectedException = ExpectedException.none();
static class TestMetaDataModule extends MetaDataModule {
@Override
protected void configure() {
FulltextAnalyzerResolver fulltextAnalyzerResolver = mock(FulltextAnalyzerResolver.class);
when(fulltextAnalyzerResolver.hasCustomAnalyzer("german")).thenReturn(false);
when(fulltextAnalyzerResolver.hasCustomAnalyzer("ft_search")).thenReturn(true);
ImmutableSettings.Builder settingsBuilder = ImmutableSettings.builder();
settingsBuilder.put("search", "foobar");
when(fulltextAnalyzerResolver.resolveFullCustomAnalyzerSettings("ft_search")).thenReturn(settingsBuilder.build());
bind(FulltextAnalyzerResolver.class).toInstance(fulltextAnalyzerResolver);
super.configure();
}