@Test
    public void simpleEndpointReturnsPostsWithoutTransformation() {
        //This unit-test class is the wrong place to test that behaviour, unless it becomes an integration test
        //Given
        ForumPosts posts = generateTestPosts();
        when(exampleApiService.getPosts()).thenReturn(posts);
        //When
        ForumPosts controllerOutput = exerciseController.posts();
        //Then
        assertEquals(controllerOutput.size(), 2);
        assertTrue(controllerOutput.get(0).getTitle().contains("Test"));
    }
@Test
    public void simpleEndpointReturnsPostsWithoutTransformation() {
       
       
        ForumPosts posts = generateTestPosts();
        when(exampleApiService.getPosts()).thenReturn(posts);
       
        ForumPosts controllerOutput = exerciseController.posts();
       
        assertEquals(controllerOutput.size(), 2);
        assertTrue(controllerOutput.get(0).getTitle().contains("Test"));
    }
@test public void simpleendpointreturnspostswithouttransformation() { forumposts posts = generatetestposts(); when(exampleapiservice.getposts()).thenreturn(posts); forumposts controlleroutput = exercisecontroller.posts(); assertequals(controlleroutput.size(), 2); asserttrue(controlleroutput.get(0).gettitle().contains("test")); }