@@ -0,0 +1,1805 @@
+package com.kishan.infinitestreams.resource;%0A%0Aimport com.google.common.collect.ImmutableList;%0Aimport com.kishan.infinitestreams.dto.out.Sequence;%0Aimport io.dropwizard.testing.junit.ResourceTestRule;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport javax.ws.rs.core.GenericType;%0Aimport java.math.BigInteger;%0Aimport java.util.List;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Apublic class FibonacciResourceTest %7B%0A%0A    @Rule%0A    public final ResourceTestRule resources = ResourceTestRule.builder()%0A            .addResource(new FibonacciResource())%0A            .build();%0A%0A    @Test%0A    public void shouldReturnFibonacciNos() %7B%0A        List%3CSequence%3E first10FibonacciNos = ImmutableList.of(%0A                new Sequence(new BigInteger(%221%22), new BigInteger(%220%22)),%0A                new Sequence(new BigInteger(%222%22), new BigInteger(%221%22)),%0A                new Sequence(new BigInteger(%223%22), new BigInteger(%221%22)),%0A                new Sequence(new BigInteger(%224%22), new BigInteger(%222%22)),%0A                new Sequence(new BigInteger(%225%22), new BigInteger(%223%22)),%0A                new Sequence(new BigInteger(%226%22), new BigInteger(%225%22)),%0A                new Sequence(new BigInteger(%227%22), new BigInteger(%228%22)),%0A                new Sequence(new BigInteger(%228%22), new BigInteger(%2213%22)),%0A                new Sequence(new BigInteger(%229%22), new BigInteger(%2221%22)),%0A                new Sequence(new BigInteger(%2210%22), new BigInteger(%2234%22))%0A        );%0A        List%3CSequence%3E evenNos = resources.client().target(%22/fibonacci?limit=100%22).request().get(new GenericType%3CList%3CSequence%3E%3E()%7B%7D);%0A%0A        assertThat(evenNos).hasSize(100);%0A        assertThat(evenNos).containsAll(first10FibonacciNos);%0A        assertThat(evenNos).contains(new Sequence(new BigInteger(%22100%22), new BigInteger(%22218922995834555169026%22)));%0A    %7D%0A%7D%0A

Test for fibonacci resource