@Test
public void testRenameAsset() {
RulesRepository rulesRepository = Mockito.mock( RulesRepository.class );
RepositoryAssetOperations repositoryAssetOperations = new RepositoryAssetOperations();
repositoryAssetOperations.setRulesRepositoryForTest(rulesRepository);
when( rulesRepository.renameAsset( "uuid",
"newname" ) ).thenReturn( "uuid" );
assertEquals( repositoryAssetOperations.renameAsset( "uuid",
"newname" ),
"uuid" );
}