when(_hostRecord.getId()).thenReturn(_hostId);
when(_hostRecord.getAttributes()).thenReturn(hostAttributes);
when(_hostRecord.getType()).thenReturn("VirtualHost");
when(_hostRecord.toString()).thenReturn("VirtualHost[name='test',id='" + _hostId + "']");
_taskExecutor = new CurrentThreadTaskExecutor();
_taskExecutor.start();
SystemConfig<?> systemConfig = mock(SystemConfig.class);
when(systemConfig.getEventLogger()).thenReturn(new EventLogger());