how to test a function of an ejb

can any one tell me how to test a function in an ejb like business logic method