@@ -0,0 +1,1164 @@
+package fr.animenfance.controller;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport static org.mockito.Mockito.when;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport fr.animenfance.bean.Partenaire;%0Aimport fr.animenfance.exception.PartenaireNotFoundException;%0Aimport fr.animenfance.service.PartenaireService;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class PartenaireControllerTest %7B%0A%0A  @Mock private PartenaireService service;%0A  @InjectMocks private PartenaireController controller;%0A%0A  @Test%0A  public void testGetById() throws Exception %7B%0A    //given%0A    Partenaire partenaire = new Partenaire(1, %22name%22);%0A%0A    //when%0A    when(service.getById(1)).thenReturn(partenaire);%0A%0A    //then%0A    assertThat(controller.getById(1).call().getBody().getName()).isEqualTo(%22name%22);%0A  %7D%0A%0A  @Test%0A  public void testGetById_not_found() throws Exception %7B%0A    //when%0A    when(service.getById(1)).thenThrow(new PartenaireNotFoundException());%0A%0A    //then%0A    assertThat(controller.getById(1).call().getStatusCode().value()).isEqualTo(404);%0A  %7D%0A%7D%0A

Add controller test.