//Then
@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"));
    }
//When
ForumPosts controllerOutput = exerciseController.posts();
//Then
assertEquals(controllerOutput.size(), 2);
assertTrue(controllerOutput.get(0).getTitle().contains("Test"));
@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() {
//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"));
}