I tried to do some junit tests but failed.