diff --git a/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-long-generic-field-type.input b/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-long-generic-field-type.input
new file mode 100644
index 000000000..6a0ada6ad
--- /dev/null
+++ b/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-long-generic-field-type.input
@@ -0,0 +1,7 @@
+class LongGenericFieldType {
+ private final AtomicReference
> gridViewConfigurations = new AtomicReference<>(ImmutableTable.of());
+
+ private final AtomicReference> gridViewConfigurationsWithDefault = new AtomicReference<>(ImmutableTable.of());
+
+ private final AtomicReference> gridViewConfigurationsWithLongNames = new AtomicReference<>(ImmutableTable.of());
+}
diff --git a/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-long-generic-field-type.output b/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-long-generic-field-type.output
new file mode 100644
index 000000000..b684e45a3
--- /dev/null
+++ b/open-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ojf-long-generic-field-type.output
@@ -0,0 +1,16 @@
+class LongGenericFieldType {
+ private final AtomicReference>
+ gridViewConfigurations = new AtomicReference<>(ImmutableTable.of());
+
+ private final AtomicReference<
+ Table>
+ gridViewConfigurationsWithDefault = new AtomicReference<>(ImmutableTable.of());
+
+ private final AtomicReference<
+ Table<
+ RealmNameIdentifierValue,
+ CoreGridViewConfigurationIdentifierValue,
+ CoreGridViewConfigurationEntryValue,
+ DefaultValue>>
+ gridViewConfigurationsWithLongNames = new AtomicReference<>(ImmutableTable.of());
+}