@Test
public void testRegister() throws Exception {

  AppStoreController ac = Mockito.mock(AppStoreController.class);
  Application app = new Application();
  app.setName("jenkins");
  app.setOrganization("jenkins.org");
  app.setDescription("This is a description");
  app.setIcon("/css/img/feather.png");
  Response expected = Response.ok().build();
  when(ac.register(app)).thenReturn(Response.ok().build());
  final Response actual = ac.register(app);
  assertEquals(expected.getStatus(), actual.getStatus());
}