@Test
public void testThatUpdatingNonExistentAliasCreatesANewAlias() {

	String aliasId = "foo";
	String templateId = "bar";
	
	Alias expectedAlias = new Alias();
	expectedAlias.setId(aliasId);
	expectedAlias.setItemId(templateId);
	//simulate record being missing from DB
	when(mockAliasMan.load(aliasId)).thenReturn(null);
	
	String originalTemplateId = instance.updateStormAlias(aliasId, mockAliasMan, templateId);
	assertNull(originalTemplateId);
	
	verify(mockAliasMan).save(eq(expectedAlias));
	verify(mockAliasMan, never()).update(any());
}