@Test public void testSaveRep() throws Exception { final Repository rep = mock(Repository.class); final IMetaStore metaStore = mock(IMetaStore.class); final ObjectId id_step = mock(ObjectId.class); final ObjectId id_transformation = mock(ObjectId.class); setSessionVariableMeta.allocate(1); setSessionVariableMeta.setFieldName(new String[] {"fn"}); setSessionVariableMeta.saveRep(rep, metaStore, id_transformation, id_step); verify(rep, times(3)) .saveStepAttribute(eq(id_transformation), eq(id_step), anyInt(), anyString(), anyString()); verify(rep) .saveStepAttribute(eq(id_transformation), eq(id_step), anyInt(), anyString(), anyBoolean()); }