@Test
public void test13getTagDefByName() {

	try {
		Mockito.when(tagStore.getTagDefByName(name)).thenReturn(null);
	} catch (Exception e) {
	}
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyInt(), Mockito.anyString(), Mockito.anyBoolean())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	tagREST.getTagDefByName(name);
	
	try {
		Mockito.verify(tagStore).getTagDefByName(name);
	} catch (Exception e) {
	}
	Mockito.verify(restErrorUtil).createRESTException(Mockito.anyInt(),
			Mockito.anyString(), Mockito.anyBoolean());
}