ems with mockito test