Changed a double call to contains followed by get on the permsToMode map with a single call to get and a check for null (in GlusterFileAttributes). Moved static methods to group them together. Removed unnecessary comments. Used PowerMockito to stub the calls made to the static parseAttrs in both GLFAttributesTest (testParseAttrs) and GLFChannelTest (initTestHelper).