PdpAttribute { public String getValue() { return value; } PdpAttribute();  PdpAttribute(String name, String value); String getName(); void setName(String name); String getValue(); void setValue(String value); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testValueTrim() { PdpAttribute nullCheck = new PdpAttribute("some_name", null); assertNull(nullCheck.getValue()); PdpAttribute attr = new PdpAttribute("some_name", " 123 "); assertEquals("123", attr.getValue()); }