### Question:
InteractTypeMapperFactoryForRO implements InteractTypeMapperFactory { @Override public InteractTypeMapper create() throws TermLookupServiceException { return new InteractTypeMapperImpl( getTermIgnoredServiceRO(), getTermLookupServiceRO()); }  @Override InteractTypeMapper create(); static final String IGNORED_LIST_DEFAULT; static final String SUPPORTED_INTERACTION_TYPES; static final String IGNORED_INTERACTION_TYPE_COLUMN_NAME; }### Answer:
@Test public void defaultMapping() throws TermLookupServiceException, IOException { InteractTypeMapper interactTypeMapper = new InteractTypeMapperFactoryForRO().create(); assertNotNull(interactTypeMapper); InteractType interactsWithByName = interactTypeMapper.getInteractType("interactsWith"); assertThat(interactsWithByName, is(InteractType.INTERACTS_WITH)); InteractType interactsWithById = interactTypeMapper.getInteractType("http: assertThat(interactsWithById, is(InteractType.INTERACTS_WITH)); }
@Test public void ensureAllInteractTypesAreSupported() throws TermLookupServiceException { InteractTypeMapper interactTypeMapper = new InteractTypeMapperFactoryForRO().create(); InteractType[] interactionTypes = InteractType.values(); for (InteractType value : interactionTypes) { if (StringUtils.equals(PropertyAndValueDictionary.NO_MATCH, value.getIRI())) { assertTrue("[" + value.getLabel() + "] should be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getLabel())); assertTrue("[" + value.getIRI() + "] should be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getIRI())); } else { InteractType interactTypeByName = interactTypeMapper.getInteractType(value.getLabel()); InteractType interactTypeById = interactTypeMapper.getInteractType(value.getIRI()); InteractType expectedType = InteractType.typeOf(value.getIRI()); assertThat(interactTypeById, is(expectedType)); assertThat(interactTypeByName, is(expectedType)); assertFalse("[" + value.getLabel() + "] should not be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getLabel())); assertFalse("[" + value.getIRI() + "] should not be ignored", interactTypeMapper.shouldIgnoreInteractionType(value.getIRI())); } } }