@Test
public void existingVantageAndDataTypeAndDifferentSourceThenDiscouraged() {

    List<AuthoritativeRatingVantagePoint> vantagePoints = new ArrayList<>();
    vantagePoints.add(ImmutableAuthoritativeRatingVantagePoint.builder()
            .vantagePoint(vantagePoint)
            .vantagePointRank(1)
            .dataTypeCode("REF_DATA")
            .dataType(EntityReference.mkRef(EntityKind.DATA_TYPE, 20))
            .dataTypeRank(1)
            .applicationId(205L)
            .rating(AuthoritativenessRating.PRIMARY)
            .build());
    AuthoritativeSourceResolver authoritativeSourceResolver = new AuthoritativeSourceResolver(vantagePoints);
    AuthoritativenessRating rating = authoritativeSourceResolver.resolve(vantagePoint, sourceApp, "REF_DATA");
    Assert.assertEquals(AuthoritativenessRating.DISCOURAGED, rating);
}