### Question:
GraphQueryResult implements Query.Result { @Override public Relationship getRelationship() { return queryResult.getRelationshipResponse().size() > 0 ? queryResult.getRelationshipResponse().get(0) : null; } GraphQueryResult(
			final QueryResult<Entity, Relationship> queryResult); @Override Entity getEntity(); @Override List<Entity> getEntities(); @Override Relationship getRelationship(); @Override List<Relationship> getRelationships();  }### Answer:
@Test public void testGetRealtionshipWithEmptyRelationshipList(){ CurrentOperationType currentOperation = CurrentOperationType.RELATIONHIP; QueryResult<Entity, Relationship> queryResult = new QueryResultImpl(currentOperation); GraphQueryResult graphQueryResult = new GraphQueryResult(queryResult ); assertNull(graphQueryResult.getRelationship()); }