A method of determining whether a brine composition for freezing an item is in a desired balance. A dedicated optical element called the inverse sample element is inserted into the path of the measurement light. The cavity is in a space between a wellbore tubular, which may be casing or production tubing, and the wellbore formation. The lens can be created by Ultra Violet light exposure to patterns.