@@ -0,0 +1,1894 @@
+package nl.homeserver.energiecontract;%0A%0Aimport static nl.homeserver.energie.StroomTariefIndicator.DAL;%0Aimport static nl.homeserver.energie.StroomTariefIndicator.NORMAAL;%0Aimport static nl.homeserver.energie.StroomTariefIndicator.ONBEKEND;%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport java.math.BigDecimal;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class EnergiecontractTest %7B%0A%0A    @Test%0A    public void givenStroomPerKwhNormaalTariefSetWhenGetStroomKostenNormaalThenReturned() %7B%0A        Energiecontract energiecontract = new Energiecontract();%0A        BigDecimal normaalTarief = new BigDecimal(%2220.121231%22);%0A        energiecontract.setStroomPerKwhNormaalTarief(normaalTarief);%0A%0A        assertThat(energiecontract.getStroomKosten(NORMAAL)).isSameAs(normaalTarief);%0A    %7D%0A%0A    @Test%0A    public void givenStroomPerKwhDalTariefSetWhenGetStroomKostenDalThenReturned() %7B%0A        Energiecontract energiecontract = new Energiecontract();%0A        BigDecimal dalTarief = new BigDecimal(%22785.7453%22);%0A        energiecontract.setStroomPerKwhDalTarief(dalTarief);%0A%0A        assertThat(energiecontract.getStroomKosten(DAL)).isSameAs(dalTarief);%0A    %7D%0A%0A    @Test%0A    public void givenStroomPerKwhDalTariefNullWhenGetStroomKostenDalThenNormaalReturned() %7B%0A        Energiecontract energiecontract = new Energiecontract();%0A        BigDecimal normaalTarief = new BigDecimal(%22123.121231%22);%0A        energiecontract.setStroomPerKwhNormaalTarief(normaalTarief);%0A%0A        assertThat(energiecontract.getStroomKosten(DAL)).isSameAs(normaalTarief);%0A    %7D%0A%0A    @Test%0A    public void givenWhenGetStroomHostenOnbekendThenZeroReturned() %7B%0A        Energiecontract energiecontract = new Energiecontract();%0A%0A        assertThat(energiecontract.getStroomKosten(ONBEKEND)).isSameAs(BigDecimal.ZERO);%0A    %7D%0A%0A%7D

Add unittests for EnergieContract