```
package com.maroclance.university.service;

import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ModuleServiceTest {
public class ModuleServiceTest {

private static ClassPathXmlApplicationContext context;

private static ModuleService moduleService;

@BeforeClass
public static void setUpBeforeClass() throws Exception {

    context = new ClassPathXmlApplicationContext("application-context.xml");
    moduleService=(ModuleService) context.getBean("moduleService");

}

@AfterClass
public static void tearDownAfterClass() throws Exception {
    context.close();
}

@Test
public void test() {
    fail("Not yet implemented");
}

```

}

i have the warning that moduleService is not used 
when i execute my code i have this error

```
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.maroclance.model.Matiere.profMats[com.maroclance.model.ProfMat]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
.
.
.
.
aused by: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.maroclance.model.Matiere.profMats[com.maroclance.model.ProfMat]
    at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1068)

```

I'm really blocked