### Question:
MapReferMetadataCreator implements ReferMetadataCreator { @Override public boolean isApplicable(Type type, String ref) { return isMap(type); }  @Override boolean isApplicable(Type type, String ref); @Override ReferMetadata getReferMetadata(Type type, String path);  }### Answer:
@Test void shouldCheckIfApplicableIfClassImplementsMap() { MapReferMetadataCreator mapBased = new MapReferMetadataCreator(); boolean applicable = mapBased.isApplicable(TestMapClass.class, "sampleField"); assertThat(applicable).isTrue(); }
@Test void shouldCheckIfApplicableIfClassDoesntImplementMap() { MapReferMetadataCreator mapBased = new MapReferMetadataCreator(); boolean applicable = mapBased.isApplicable(TestClass.class, "sampleField"); assertThat(applicable).isFalse(); }