what do scientist do to determine if a substance is a mineral or and nonmineral

what do scientist do to determine if a substance is a mineral or and nonmineral