@Test
public void thatCanSearchToFilterTargetRelationships() {

    SearchQuery query = SearchQuery.builder()
            .addRelatedInstances(Relationship.create("fieldname", "1"))
            .addRelatedInstances(Relationship.create("fieldname", "2"))
            .build();
    assertThat(query.mRelationships.size()).isEqualTo(2);
    assertTrue(query.mRelationships.get(0).getFieldName().equals("fieldname"));
}