Service method test

Hi Team,

How can I test a method from Middleware?
I’ve tried:

    private UpdateStatusService updateStatusService;
    public void setUp() {
        updateStatusService = Mockito.mock(UpdateStatusService.class);

    public void testLoadData() {
        assertEquals(updateStatusService.addNumbersTest(2, 3), 5);

but I cannot get the Service, I have java.lang.NullPointerException on assertEquals line…

Best Regards,

Instead of JMockit I used Mockito.
It works like a charm.