### Question:
OpenstackCloudClient extends BuildServerAdapter implements CloudClientEx { @Nullable public CloudErrorInfo getErrorInfo() { return errorInfo; } OpenstackCloudClient(@NotNull final CloudClientParameters params, @NotNull ServerPaths serverPaths,
            @NotNull final ExecutorServiceFactory factory); boolean isInitialized(); @Nullable OpenstackCloudImage findImageById(@NotNull final String imageId); @Nullable OpenstackCloudInstance findInstanceByAgent(@NotNull final AgentDescription agentDescription); @NotNull Collection<? extends OpenstackCloudImage> getImages(); @Nullable CloudErrorInfo getErrorInfo(); boolean canStartNewInstance(@NotNull final CloudImage image); @NotNull CloudInstance startNewInstance(@NotNull final CloudImage image, @NotNull final CloudInstanceUserData data); void restartInstance(@NotNull final CloudInstance instance); void terminateInstance(@NotNull final CloudInstance instance); @Nullable String generateAgentName(@NotNull final AgentDescription agentDescription); void dispose();  }### Answer:
@Test public void testNoImage() throws Exception { Properties props = getTestProps(OpenStackVersion.TWO); OpenstackCloudClient client = getClient(props.getProperty(TEST_KEY_URL), props.getProperty(TEST_KEY_IDENTITY), props.getProperty(TEST_KEY_PASSWORD), props.getProperty(TEST_KEY_REGION), null); Assert.assertEquals("No images specified", client.getErrorInfo().getMessage()); }
@Test public void testOnlyComments() throws Exception { Properties props = getTestProps(OpenStackVersion.TWO); OpenstackCloudClient client = getClient(props.getProperty(TEST_KEY_URL), props.getProperty(TEST_KEY_IDENTITY), props.getProperty(TEST_KEY_PASSWORD), props.getProperty(TEST_KEY_REGION), "#A comment"); Assert.assertEquals("No images specified (perhaps only comments)", client.getErrorInfo().getMessage()); }
@Test public void testNoParams() throws Exception { Properties props = getTestProps(OpenStackVersion.TWO); OpenstackCloudClient client = getClient(props.getProperty(TEST_KEY_URL), props.getProperty(TEST_KEY_IDENTITY), props.getProperty(TEST_KEY_PASSWORD), props.getProperty(TEST_KEY_REGION), "some-image:"); Assert.assertEquals("No parameters defined for image: some-image", client.getErrorInfo().getMessage()); }