}
public void testDoPostCreate() throws Exception {
InstanceSettings is =
new InstanceSettings(1234, 5678, null, null, Collections.singletonList("http://someURL"), Arrays.asList("abc", "def"));
AdminService adminService = EasyMock.createMock(AdminService.class);
EasyMock.expect(adminService.createInstance("instance1", is)).andReturn(null);
EasyMock.expect(adminService.getInstances()).andReturn(new Instance[] {}).anyTimes();
EasyMock.replay(adminService);
AdminPlugin ap = new AdminPlugin();
ap.setAdminService(adminService);