@Test
public void shouldReturnListOfHotels() {
List<Broker> brokers = new ArrayList<>();
Broker broker1 = mock(Broker.class);
Broker broker2 = mock(Broker.class);
brokers.add(broker1);
brokers.add(broker2);
List<Hotel> hotelsBroker1 = new ArrayList<>();
hotelsBroker1.add(new Hotel("broker1-hotel1", 3));
hotelsBroker1.add(new Hotel("broker1-hotel2", 1));
hotelsBroker1.add(new Hotel("broker1-hotel3", 3));
hotelsBroker1.add(new Hotel("broker1-hotel4", 5));
List<Hotel> hotelsBroker2 = new ArrayList<>();
hotelsBroker1.add(new Hotel("broker2-hotel1", 3));
hotelsBroker1.add(new Hotel("broker2-hotel2", 1));
hotelsBroker1.add(new Hotel("broker2-hotel3", 3));
hotelsBroker1.add(new Hotel("broker2-hotel4", 5));
// TODO: em relação ao broken filter no momento pode ser qualquer um
// pelo fato de se trata de uma poc de arquitetura e nao temos nada
// definido ainda em relacao aos parametros de consulta nos brokens..
when(broker1.getHotels(any(BrokenFilter.class))).thenReturn(hotelsBroker1);
when(broker2.getHotels(any(BrokenFilter.class))).thenReturn(hotelsBroker2);
// TODO: no momento iremos apenas utilizar o pais como região
// para obter os brokers
when(brokenService.getBrokers(new Region("Brasil"))).thenReturn(brokers);