ActionableEvidenceFactory { @Nullable @VisibleForTesting static EvidenceDirection resolveDirection(@Nullable String direction) { String effectiveDirection = reformatField(direction); if (effectiveDirection == null) { return null; } if (RESPONSIVE_DIRECTIONS.contains(effectiveDirection)) { return EvidenceDirection.RESPONSIVE; } else if (RESISTANT_DIRECTIONS.contains(effectiveDirection)) { return EvidenceDirection.RESISTANT; } if (!DIRECTIONS_TO_IGNORE.contains(effectiveDirection)) { LOGGER.warn("Could not resolve VICC direction '{}'", effectiveDirection); } return null; } private  ActionableEvidenceFactory(); @Nullable static ActionableEvent toActionableEvent(@NotNull ViccEntry entry);  }
@Test public void canResolveDirection() { assertEquals(EvidenceDirection.RESPONSIVE, ActionableEvidenceFactory.resolveDirection("Responsive")); assertEquals(EvidenceDirection.RESPONSIVE, ActionableEvidenceFactory.resolveDirection("Sensitive")); assertEquals(EvidenceDirection.RESISTANT, ActionableEvidenceFactory.resolveDirection("Resistant")); assertNull(ActionableEvidenceFactory.resolveDirection(null)); assertNull(ActionableEvidenceFactory.resolveDirection("Conflicting")); assertNull(ActionableEvidenceFactory.resolveDirection("This is no direction")); }