public String getProperty(String propertyKey) {
        return configs.get(propertyKey);
    }
@Test
    public void testSerialization() throws Exception {
        JDBCResource resource0 = new JDBCResource("jdbc_resource_test", getMockConfigs());

        String json = GsonUtils.GSON.toJson(resource0);
        Resource resource1 = GsonUtils.GSON.fromJson(json, Resource.class);

        Assert.assertTrue(resource1 instanceof JDBCResource);
        Assert.assertEquals(resource0.getName(), resource1.getName());
        Assert.assertEquals(resource0.getProperty(JDBCResource.DRIVER_URL),
                ((JDBCResource) resource1).getProperty(JDBCResource.DRIVER_URL));
        Assert.assertEquals(resource0.getProperty(JDBCResource.DRIVER_CLASS),
                ((JDBCResource) resource1).getProperty(JDBCResource.DRIVER_CLASS));
        Assert.assertEquals(resource0.getProperty(JDBCResource.URI),
                ((JDBCResource) resource1).getProperty(JDBCResource.URI));
        Assert.assertEquals(resource0.getProperty(JDBCResource.USER),
                ((JDBCResource) resource1).getProperty(JDBCResource.USER));
        Assert.assertEquals(resource0.getProperty(JDBCResource.PASSWORD),
                ((JDBCResource) resource1).getProperty(JDBCResource.PASSWORD));
    }