### Question:
urn_perun_member_attribute_def_def_mail extends MemberAttributesModuleAbstract implements MemberAttributesModuleImplApi { @Override public void checkAttributeSemantics(PerunSessionImpl perunSession, Member member, Attribute attribute) throws WrongReferenceAttributeValueException { if(attribute.getValue() == null) throw new WrongReferenceAttributeValueException(attribute, "Member mail can't be null."); }  @Override void checkAttributeSyntax(PerunSessionImpl perunSession, Member member, Attribute attribute); @Override void checkAttributeSemantics(PerunSessionImpl perunSession, Member member, Attribute attribute); @Override void changedAttributeHook(PerunSessionImpl session, Member member, Attribute attribute); @Override AttributeDefinition getAttributeDefinition();  }### Answer:
@Test(expected = WrongReferenceAttributeValueException.class) public void testCheckNull() throws Exception { System.out.println("testCheckNull()"); attributeToCheck.setValue(null); classInstance.checkAttributeSemantics(session, member, attributeToCheck); }
@Test public void testCorrectSemantics() throws Exception { System.out.println("testCorrectSemantics()"); attributeToCheck.setValue("my@example.com"); classInstance.checkAttributeSemantics(session, member, attributeToCheck); }