It is possible to create entries which miss required attributes. Here is an example: objectClass person requires a value for sn, but it is possible to import the following entry:
dn: cn=Fiona Apple,dc=example,dc=com
cn: Fiona Apple
I add a JUnit test class which passes if the expected error (objectClass violation) occurs.