/**
 * Copyright (C) 2015, CoNWeT Lab., Universidad Politécnica de Madrid
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

package es.upm.fiware.rss.settlement;

import es.upm.fiware.rss.settlement.ThreadPoolManager;
import java.util.concurrent.ExecutorService;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.mockito.InjectMocks;
import org.mockito.Mock;

/**
 *
 * @author jortiz
 */
public class ThreadPoolManagerTest {
    @Mock private ExecutorService executorService;
    @InjectMocks private ThreadPoolManager toTest;

    public ThreadPoolManagerTest() {
    }

    @BeforeClass
    public static void setUpClass() {
    }

    @AfterClass
    public static void tearDownClass() {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    /*@Test
    public void test() {
        toTest.cleanUp();
        toTest.getExecutorService();
        toTest.init();
    }*/
}

@@ -983,24 +983,47 @@
 eforeClass;%0A
+import org.junit.Test;%0A
 import org.m
@@ -1066,16 +1066,55 @@
 to.Mock;
+%0Aimport org.mockito.MockitoAnnotations;
 %0A%0A/**%0A *
@@ -1173,16 +1173,17 @@
 rTest %7B%0A
+%0A
     @Moc
@@ -1332,21 +1332,16 @@
  @Before
-Class
 %0A    pub
@@ -1340,31 +1340,24 @@
 %0A    public 
-static 
 void setUpCl
@@ -1354,21 +1354,16 @@
 id setUp
-Class
 () %7B%0A   
@@ -1367,159 +1367,47 @@
     
-%7D%0A%0A
     
-@AfterClass%0A    public static void tearDownClass() %7B%0A    %7D%0A%0A    @Before%0A    public void setUp() %7B%0A    %7D%0A%0A    @After%0A    public void tearDown() %7B
+MockitoAnnotations.initMocks(this);
 %0A   
@@ -1414,18 +1414,16 @@
  %7D%0A%0A    
-/*
 @Test%0A  
@@ -1536,13 +1536,11 @@
 );%0A    %7D
-*/
 %0A%7D%0A

Add new test to ThreadPoolManagerTest.java