replaced checkArgument by assertTrue