public class AcControllerTest {
@Test
public void testRegisterHost() throws IOException {
final JsonNode installJson = readJsonFromTestFile("installEvent.json");
final AcHostService hostService = mock(AcHostService.class);
when(hostService.registerHost(eq("1234567890"), eq("http://jira.atlassian.com:2990/jira"), eq("PK GOES HERE"),
eq("SHARED SECRET"), eq("jira"))).thenReturn(
Promise.promise(new Function0<Void>() {
@Override
public Void apply() throws Throwable {
return null;