@Test
public void testisDeployed() throws Exception {

  ViewEntity viewDefinition = getViewEntity();
  viewDefinition.setStatus(ViewDefinition.ViewStatus.PENDING);
  Assert.assertFalse(viewDefinition.isDeployed());
  viewDefinition.setStatus(ViewDefinition.ViewStatus.DEPLOYING);
  Assert.assertFalse(viewDefinition.isDeployed());
  viewDefinition.setStatus(ViewDefinition.ViewStatus.DEPLOYED);
  Assert.assertTrue(viewDefinition.isDeployed());
  viewDefinition.setStatus(ViewDefinition.ViewStatus.ERROR);
  Assert.assertFalse(viewDefinition.isDeployed());
}