@Test
  public void testGetInstalledVersionsShouldReturnErrorStatus() throws Exception {
    doThrow(new IOException("error")).when(mockFacade).getInstalledVersions();

    Response result = service.getInstalledVersions();
    assertEquals(result.getStatus(), Response.Status.INTERNAL_SERVER_ERROR.getStatusCode());
  }
  @Test
  public void testGetInstalledVersionsShouldReturnOkStatus() throws Exception {
    doReturn(
            ImmutableList.of(
                new InstallArtifactInfo()
                    .withVersion("1.0.1")
                    .withArtifact("codenvy")
                    .withStatus(InstallArtifactStatus.SUCCESS)))
        .when(mockFacade)
        .getInstalledVersions();

    Response result = service.getInstalledVersions();
    assertEquals(result.getStatus(), Response.Status.OK.getStatusCode());
  }