@Test
public void testInsertNewStudent() {

    Student student = new Student(1234, "John Doe", LocalDate.of(2011, Month.JANUARY, 1));
    try {
        Student insertedStudent = studentService.insertStudent(student);
        assertEquals(student, insertedStudent);
    } catch (ResourceAlreadyExistsException e) {
        e.printStackTrace();
    }
}