Inflammation and scarring to the liver

what is the most accurate test to determine the amount of inflammation and scarring to the liver