FieldMapping { public boolean isWildcardSpecified() { return specifiedFieldsByName.containsKey(path() + ".*"); } FieldMapping(String fieldName);  FieldMapping(String fieldName,
                        Map<String, FieldMappingMetadata> typeMappings,
                        Map<String, Field> specifiedFieldByNames); boolean isSpecified(); boolean isWildcardSpecified(); boolean isPropertyField(); boolean isMultiField(); boolean isMetaField(); String path(); @SuppressWarnings("unchecked") String type();  }
@Test public void testFieldMatchesWildcardPatternSpecifiedInQuery() { assertThat( new FieldMapping("employee.first", emptyMap(), fieldsSpecifiedInQuery("employee.*")), isWildcardSpecified(true) ); }
@Test public void testFieldMismatchesWildcardPatternSpecifiedInQuery() { assertThat( new FieldMapping("employee.first", emptyMap(), fieldsSpecifiedInQuery("manager.*")), isWildcardSpecified(false) ); }