@@ -0,0 +1,1213 @@
+/*%0D%0A * Test for PDCController%0D%0A */%0D%0Apackage de.ddb.pdc.web;%0D%0A%0D%0Aimport de.ddb.pdc.answerer.AnswererService;%0D%0Aimport de.ddb.pdc.core.AnsweredQuestion;%0D%0Aimport de.ddb.pdc.core.PDCResult;%0D%0Aimport de.ddb.pdc.metadata.DDBItem;%0D%0Aimport de.ddb.pdc.metadata.MetaFetcher;%0D%0Aimport java.util.ArrayList;%0D%0Aimport java.util.List;%0D%0Aimport org.junit.Assert;%0D%0Aimport org.junit.Test;%0D%0Aimport org.mockito.Mockito;%0D%0A%0D%0Apublic class PDCControllerTest %7B%0D%0A%0D%0A  @Test%0D%0A  public void calculate() throws Exception%7B%0D%0A    MetaFetcher mfetcher = Mockito.mock(MetaFetcher.class);%0D%0A    AnswererService ansService = Mockito.mock(AnswererService.class);%0D%0A    DDBItem ddbItemfromMetaFetcher = new DDBItem(%22123%22);%0D%0A    List%3CAnsweredQuestion%3E trace = new ArrayList%3CAnsweredQuestion%3E();%0D%0A    PDCResult pdcResult = new PDCResult(true,trace);%0D%0A    Mockito.when(mfetcher.fetchMetadata(%22123%22)).thenReturn(ddbItemfromMetaFetcher);%0D%0A    Mockito.when(ansService.getResult(%22Germany%22, ddbItemfromMetaFetcher)).thenReturn(pdcResult);%0D%0A    PDCController pdcController = new PDCController(mfetcher, ansService);%0D%0A    Mockito.when(pdcController.calculate(%22123%22)).thenReturn(pdcResult);%0D%0A%0D%0A    Assert.assertSame(pdcResult, pdcController.calculate(%22123%22));%0D%0A  %7D%0D%0A%0D%0A%7D%0D%0A

Add test for calculate-method in PDCControllerTest.