@Test
public void testNotify() {

    Intent intent = new Intent(ApplicationProvider.getApplicationContext(), TestService.class);
    intent.putExtra("code", "1234");
    intent.setAction("");
    controller = Robolectric.buildService(TestService.class, intent);
    service = controller.create().get();
    service.notify("test");
}