It will nevere contain the km, regardless if you call the removelLocal or not, since kmRegistry is a mock which always returns an empty list when you call kmRegistry.getLocals().
So it will never contain anything.