added junit
not throw exception
constants class introduced
added exam provider