Typescript Test For Strings In Java