StandardAtomGenerator { static String accessPseudoLabel(IPseudoAtom atom, String defaultLabel) { String label = atom.getLabel(); if (label != null && !label.isEmpty()) return label; return defaultLabel; } StandardAtomGenerator(Font font); private  StandardAtomGenerator(Font font, double adjunctSpacing, double scriptSize);   }
@Test public void accessNullPseudoLabel() throws Exception { IPseudoAtom atom = mock(IPseudoAtom.class); when(atom.getLabel()).thenReturn(null); assertThat(StandardAtomGenerator.accessPseudoLabel(atom, "*"), is("*")); }
@Test public void accessEmptyPseudoLabel() throws Exception { IPseudoAtom atom = mock(IPseudoAtom.class); when(atom.getLabel()).thenReturn(""); assertThat(StandardAtomGenerator.accessPseudoLabel(atom, "*"), is("*")); }
@Test public void accessRgroupPseudoLabel() throws Exception { IPseudoAtom atom = mock(IPseudoAtom.class); when(atom.getLabel()).thenReturn("R1"); assertThat(StandardAtomGenerator.accessPseudoLabel(atom, "*"), is("R1")); }