@Test
public void testDeleteValueSetCategory()
		throws ValueSetCategoryNotFoundException {

	ValueSetCategory deleted = mock(ValueSetCategory.class);
	when(valueSetCategoryRepository.findOne(anyLong())).thenReturn(deleted);
	when(
			consentRepositoryMock
					.findAllByDoNotShareSensitivityPolicyCodesValueSetCategory(deleted))
			.thenReturn(null);
	ValueSetCategoryDto valueSetCategoryDto = mock(ValueSetCategoryDto.class);
	when(
			valueSetMgmtHelper.createValuesetCategoryDtoFromEntity(deleted,
					consentRepositoryMock)).thenReturn(valueSetCategoryDto);
	Assert.assertEquals(vst.delete((long) 1), valueSetCategoryDto);
}