@@ -0,0 +1,1193 @@
+package com.github.sbugat.ec2tools.service.configuration;%0A%0Aimport org.apache.commons.configuration.ConfigurationException;%0Aimport org.apache.commons.configuration.HierarchicalINIConfiguration;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InOrder;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport com.github.sbugat.GenericMockitoTest;%0A%0A/**%0A * Configuration service test.%0A * %0A * @author Sylvain Bugat%0A */%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class ConfigurationServiceTest extends GenericMockitoTest %7B%0A%0A%09@Mock%0A%09private HierarchicalINIConfiguration hierarchicalINIConfiguration;%0A%0A%09@InjectMocks%0A%09private ConfigurationService configurationService;%0A%0A%09@Test%0A%09public void testLoadConfigurationEmpty() throws ConfigurationException %7B%0A%0A%09%09configurationService.loadConfiguration();%0A%0A%09%09final InOrder inOrder = Mockito.inOrder(hierarchicalINIConfiguration);%0A%0A%09%09inOrder.verify(hierarchicalINIConfiguration).clear();%0A%09%09inOrder.verify(hierarchicalINIConfiguration).load(ConfigurationService.CONFIGURATION_FILE_NAME);%0A%09%09inOrder.verify(hierarchicalINIConfiguration).getSections();%0A%09%7D%0A%7D%0A

Add unit test