````java
public boolean updateReferences(MethodNode method){
    List<AbstractCategoryNode> categories = method.getCategories();
    if(categories.size() != getTestData().size()) return false;
        for(int i = 0; i < categories.size(); i++){
            PartitionNode original = getTestData().get(i);
            PartitionNode newReference = categories.get(i).getPartition(original.getQualifiedName());
            if(newReference == null){
                return false;
            }
            getTestData().set(i, newReference);
        }
    }
}
````

Of course with check for expected values