when(project.getRestMockServiceAt(0)).thenReturn(restMockService);
when(project.isOpen()).thenReturn(true);
when(project.getPropertyNames()).thenReturn(new String[]{});
WorkspaceTreeNode workspaceNode = mock(WorkspaceTreeNode.class);
SoapUITreeModel soapUITreeModel = mock(SoapUITreeModel.class);
when(workspaceNode.getTreeModel()).thenReturn(soapUITreeModel);
ProjectTreeNode projectTreeNode = new ProjectTreeNode(project, workspaceNode);
assertThat(projectTreeNode.getChildCount(), is(1));