### Question:
MainPMScmd { public static MyPreference getMyPrefs() { if (myPrefs == null) { myPrefs = new MyPreference(); } return myPrefs; } MainPMScmd(); static void main(String args[]); static void commandParamsPrinter(String[] args, @SuppressWarnings("rawtypes") Class mainClazz, Date runningStartDate); static MyPreference getMyPrefs();  }### Answer:
@Test public void testGetMyPrefs2() { String toto = MainPMScmd.getMyPrefs().get("toto", "tata"); assertEquals("tata", toto); MainPMScmd.getMyPrefs().put("toto", "tete"); String toto2 = MainPMScmd.getMyPrefs().get("toto", "tutu"); assertEquals("tete", toto2); }
@Test public void testGetMyPrefs2B() { Boolean toto = MainPMScmd.getMyPrefs().getBoolean("totob", false); assertEquals(false, toto); MainPMScmd.getMyPrefs().putBoolean("totob", true); Boolean toto2 = MainPMScmd.getMyPrefs().getBoolean("totob", false); assertEquals(true, toto2); }
@Test public void testGetMyPrefs() { String toto = MainPMScmd.getMyPrefs().get("toto", "tata"); assertEquals("tata", toto); String toto2 = MainPMScmd.getMyPrefs().get("toto", "tutu"); assertEquals("tutu", toto2); }
@Test public void testGetMyPrefsB() { Boolean toto = MainPMScmd.getMyPrefs().getBoolean("totob", false); assertEquals(false, toto); Boolean toto2 = MainPMScmd.getMyPrefs().getBoolean("totob", true); assertEquals(true, toto2); }