public void testComplexRemote() {
Remote remote = new Remote();
remote.withUrl("foo").withWildcard("%FOO");
BloodhoundConfig config = new BloodhoundConfig();
config.withRemote(remote);
String expected = "{\"datumTokenizer\":function(d) { return Bloodhound.tokenizers.whitespace(d.value); },\"queryTokenizer\":Bloodhound.tokenizers.whitespace,\"remote\":\"{\\\"wildcard\\\":\\\"%FOO\\\",\\\"url\\\":\\\"foo\\\"}\"}";
assertEquals(expected, config.toJsonString());
}