public void not_create_component_on_sub_views() {
String componentKey = "new-project";
String componentName = "New Project";
String qualifier = Qualifiers.SUBVIEW;
long componentId = Long.MAX_VALUE;
ComponentDto component = mock(ComponentDto.class);
when(component.getId()).thenReturn(componentId);
when(resourceDao.findByKey(componentKey)).thenReturn(null).thenReturn(component);
service.createComponent(componentKey, componentName, qualifier);
verify(resourceDao, never()).insertOrUpdate(any(ResourceDto.class));