@@ -0,0 +1,1222 @@
+package com.accenture.multibank.factory;%0A%0Aimport com.accenture.multibank.accounts.AccountType;%0Aimport com.accenture.multibank.generator.AccountNumberGenerator;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport static org.mockito.Mockito.when;%0A%0A/**%0A * @author manuel%0A * @version 11/29/16%0A */%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class SimpleAccountFactoryTest %7B%0A%0A    private AccountFactory accountFactory;%0A%0A    @Mock%0A    private AccountNumberGenerator accountNumberGenerator;%0A%0A    private int accNr;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        accountFactory = new SimpleAccountFactory();%0A        accNr = 0;%0A        when(accountNumberGenerator.generateAccountNumber()).thenReturn(++accNr);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void createAccountWithNullGenerator() throws Exception %7B%0A        accountFactory.createAccount(null, AccountType.CREDIT, 0);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void createAccountWithNullAccountType() throws Exception %7B%0A        accountFactory.createAccount(accountNumberGenerator, null, 0);%0A    %7D%0A%0A%7D%0A

add test cases for createAccount with null type and generator