YouTubeUtils { static String get(final XProperties dictionary, final YouTubeKey key) { return get(dictionary, key, true); } private  YouTubeUtils();  static final String keyPrefix; }
@Test(expected = IllegalArgumentException.class) public void testGetWhenRequired() { YouTubeUtils.get(new XProperties(), YouTubeKey.clientSecretsV3, true); }
@Test(expected = IllegalArgumentException.class) public void testGetWhenRequiredByDefault() { YouTubeUtils.get(new XProperties(), YouTubeKey.clientSecretsV3); }
@Test public void testNull() { assertNull(YouTubeUtils.get(new XProperties(), YouTubeKey.clientSecretsV3, false)); }
@Test public void testGet() { final XProperties p = new XProperties(); final String value = "value"; YouTubeUtils.put(p, YouTubeKey.clientSecretsV3, value); assertEquals(value, YouTubeUtils.get(p, YouTubeKey.clientSecretsV3, true)); assertEquals(value, YouTubeUtils.get(p, YouTubeKey.clientSecretsV3)); assertEquals(value, YouTubeUtils.get(p, YouTubeKey.clientSecretsV3, false)); }