ScreenTagHistory { public String getFragment() { return fragment != null ? fragment : ""; } ScreenTagHistory(); private  ScreenTagHistory(String fragment, String tag, String store); String getStore(); String getFragment(); void setFragment(String fragment); String getTag(); void setTag(String tag); @Override String toString();  }
@Test public void checkIfNullFragmentReturnEmptyStringFragment() { ScreenTagHistory screenTagHistory = ScreenTagHistory.Builder.build(null, "tag", "home"); assertFalse(screenTagHistory.getFragment() == null); assertTrue(screenTagHistory.getFragment() .equals("")); }