@Test
public void test50getServiceTagsIfUpdated() {

	ServiceTags oldServiceTag = null;
	
	try {
		Mockito.when(tagStore.getServiceTagsIfUpdated(serviceName, lastKnownVersion, true)).thenReturn(oldServiceTag);
	} catch (Exception e) {
	}
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyInt(),Mockito.anyString(), Mockito.anyBoolean())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	
	tagREST.getServiceTagsIfUpdated(serviceName, lastKnownVersion, 0L, pluginId, false, capabilityVector, null);
	
	try {
		Mockito.verify(tagStore).getServiceTagsIfUpdated(serviceName, lastKnownVersion, true);
	} catch (Exception e) {
	}
	Mockito.verify(restErrorUtil).createRESTException(Mockito.anyInt(),Mockito.anyString(), Mockito.anyBoolean());
}