@Test
public void test27createServiceResource() {

	RangerServiceResource oldRSR = null;
	RangerServiceResource newRSR = new RangerServiceResource();
	newRSR.setId(id);
	newRSR.setGuid(gId);
	
	try {
		Mockito.when(validator.preCreateServiceResource(oldRSR)).thenReturn(oldRSR);
	} catch (Exception e) {
	}
	try {
		Mockito.when(tagStore.createServiceResource(oldRSR)).thenReturn(newRSR);
	} catch (Exception e) {
	}
	
	RangerServiceResource rangerServiceResource = tagREST.createServiceResource(oldRSR, false);
	Assert.assertNotNull(rangerServiceResource.getId());
	Assert.assertEquals(rangerServiceResource.getId(), newRSR.getId());
	Assert.assertEquals(rangerServiceResource.getGuid(), newRSR.getGuid());
	
	try {
		Mockito.verify(validator).preCreateServiceResource(oldRSR);
	} catch (Exception e) {
	}
	try {
		Mockito.verify(tagStore).createServiceResource(oldRSR);
	} catch (Exception e) {
	}
}