@Test
public void test51getServiceTagsIfUpdated() {

	ServiceTags oldServiceTag = new ServiceTags();
	oldServiceTag.setServiceName(serviceName);
	oldServiceTag.setTagVersion(5L);
	
	try {
		Mockito.when(tagStore.getServiceTagsIfUpdated(serviceName, lastKnownVersion, true)).thenReturn(oldServiceTag);
	} catch (Exception e) {
	}
	ServiceTags serviceTags = tagREST.getServiceTagsIfUpdated(serviceName, lastKnownVersion, 0L, pluginId, false, capabilityVector, null);
	Assert.assertEquals(serviceTags.getServiceName(), oldServiceTag.getServiceName());
	Assert.assertEquals(serviceTags.getTagVersion(), oldServiceTag.getTagVersion());
	
	try {
		Mockito.verify(tagStore).getServiceTagsIfUpdated(serviceName, lastKnownVersion, true);
	} catch (Exception e) {
	}
}