@Test
public void testInit() throws Exception
{

    tracker.setDaoManager( daoManager );
    when( daoManager.getEntityManagerFactory() ).thenReturn( entityManagerFactory );
    when( entityManagerFactory.createEntityManager() ).thenReturn( entityManager );
    tracker.init();
    verify( entityManager, atLeastOnce() ).close();
}